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.
2 parents e3ab3e8 + 7d0ee47 commit 5002702Copy full SHA for 5002702
t/test-lib-functions.sh
@@ -294,8 +294,20 @@ write_script () {
294
# The single parameter is the prerequisite tag (a simple word, in all
295
# capital letters by convention).
296
297
+test_unset_prereq () {
298
+ ! test_have_prereq "$1" ||
299
+ satisfied_prereq="${satisfied_prereq% $1 *} ${satisfied_prereq#* $1 }"
300
+}
301
+
302
test_set_prereq () {
- satisfied_prereq="$satisfied_prereq$1 "
303
+ case "$1" in
304
+ !*)
305
+ test_unset_prereq "${1#!}"
306
+ ;;
307
+ *)
308
+ satisfied_prereq="$satisfied_prereq$1 "
309
310
+ esac
311
}
312
satisfied_prereq=" "
313
lazily_testable_prereq= lazily_tested_prereq=
0 commit comments