Merge branch 'js/test-unset-prereq'
Test debugging aid. * js/test-unset-prereq: tests: introduce test_unset_prereq, for debugging
This commit is contained in:
@ -294,8 +294,20 @@ write_script () {
|
|||||||
# The single parameter is the prerequisite tag (a simple word, in all
|
# The single parameter is the prerequisite tag (a simple word, in all
|
||||||
# capital letters by convention).
|
# capital letters by convention).
|
||||||
|
|
||||||
|
test_unset_prereq () {
|
||||||
|
! test_have_prereq "$1" ||
|
||||||
|
satisfied_prereq="${satisfied_prereq% $1 *} ${satisfied_prereq#* $1 }"
|
||||||
|
}
|
||||||
|
|
||||||
test_set_prereq () {
|
test_set_prereq () {
|
||||||
|
case "$1" in
|
||||||
|
!*)
|
||||||
|
test_unset_prereq "${1#!}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
satisfied_prereq="$satisfied_prereq$1 "
|
satisfied_prereq="$satisfied_prereq$1 "
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
satisfied_prereq=" "
|
satisfied_prereq=" "
|
||||||
lazily_testable_prereq= lazily_tested_prereq=
|
lazily_testable_prereq= lazily_tested_prereq=
|
||||||
|
Reference in New Issue
Block a user