We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0407a47 commit 35bf593Copy full SHA for 35bf593
scripts/runtest.sh
@@ -74,7 +74,15 @@ skipnot()
74
else
75
eval "$@"
76
fi
77
- [ $? -eq 0 ] || SKIPNOT=1
+ [ $? -eq 0 ] || SKIPNEXT=1
78
+}
79
+
80
+toyonly()
81
+{
82
+ IS_TOYBOX="$("$C" --version 2>/dev/null)"
83
+ [ "${IS_TOYBOX/toybox/}" == "$IS_TOYBOX" ] && SKIPNEXT=1
84
85
+ "$@"
86
}
87
88
wrong_args()
@@ -97,10 +105,10 @@ testing()
97
105
98
106
[ -n "$DEBUG" ] && set -x
99
107
100
- if [ -n "$SKIP" -o -n "$SKIP_HOST" -a -n "$TEST_HOST" -o -n "$SKIPNOT" ]
108
+ if [ -n "$SKIP" -o -n "$SKIP_HOST" -a -n "$TEST_HOST" -o -n "$SKIPNEXT" ]
101
109
then
102
110
[ ! -z "$VERBOSE" ] && echo "$SHOWSKIP: $NAME"
103
- unset SKIPNOT
111
+ unset SKIPNEXT
104
112
return 0
113
114
0 commit comments