X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ftest-lib-functions.sh;h=21b2ea55b7b5a358bf1075a9095526dcf5cce4ee;hb=7f9c59ddb12377b787b9a0d4b79b68755541cf7f;hp=8d59b90348ea898ca983e8bbd0742de495a8d36d;hpb=84cdeed1cb70660b24bc574902483dc815c5918b;p=thirdparty%2Fgit.git diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 8d59b90348..21b2ea55b7 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -423,7 +423,7 @@ write_script () { # - Explicitly using test_have_prereq. # # - Implicitly by specifying the prerequisite tag in the calls to -# test_expect_{success,failure,code}. +# test_expect_{success,failure} and test_external{,_without_stderr}. # # The single parameter is the prerequisite tag (a simple word, in all # capital letters by convention). @@ -474,15 +474,15 @@ test_lazy_prereq () { test_run_lazy_prereq_ () { script=' -mkdir -p "$TRASH_DIRECTORY/prereq-test-dir" && +mkdir -p "$TRASH_DIRECTORY/prereq-test-dir-'"$1"'" && ( - cd "$TRASH_DIRECTORY/prereq-test-dir" &&'"$2"' + cd "$TRASH_DIRECTORY/prereq-test-dir-'"$1"'" &&'"$2"' )' say >&3 "checking prerequisite: $1" say >&3 "$script" test_eval_ "$script" eval_ret=$? - rm -rf "$TRASH_DIRECTORY/prereq-test-dir" + rm -rf "$TRASH_DIRECTORY/prereq-test-dir-$1" if test "$eval_ret" = 0; then say >&3 "prerequisite $1 ok" else