diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-12-01 21:41:44 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-12-01 21:41:44 +0900 |
commit | 623370493673d27c1994ea4394f123e4ed0a20bc (patch) | |
tree | e4b28b163845b752b0663de97ab3da8902990dce /t/perf | |
parent | Merge branch 'sg/test-cmp-rev' (diff) | |
parent | tests: send "bug in the test script" errors to the script's stderr (diff) | |
download | tgif-623370493673d27c1994ea4394f123e4ed0a20bc.tar.xz |
Merge branch 'sg/test-BUG'
test framework has been updated to make a bug in the test script
(as opposed to bugs in Git that are discovered by running the
tests) stand out more prominently.
* sg/test-BUG:
tests: send "bug in the test script" errors to the script's stderr
Diffstat (limited to 't/perf')
-rw-r--r-- | t/perf/perf-lib.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh index 11d1922cf5..2e33ab3ec3 100644 --- a/t/perf/perf-lib.sh +++ b/t/perf/perf-lib.sh @@ -82,7 +82,7 @@ test_perf_do_repo_symlink_config_ () { test_perf_create_repo_from () { test "$#" = 2 || - error "bug in the test script: not 2 parameters to test-create-repo" + BUG "not 2 parameters to test-create-repo" repo="$1" source="$2" source_git="$("$MODERN_GIT" -C "$source" rev-parse --git-dir)" @@ -184,7 +184,7 @@ test_wrapper_ () { test_start_ test "$#" = 3 && { test_prereq=$1; shift; } || test_prereq= test "$#" = 2 || - error "bug in the test script: not 2 or 3 parameters to test-expect-success" + BUG "not 2 or 3 parameters to test-expect-success" export test_prereq if ! test_skip "$@" then |