summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-12-01 09:04:39 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-01 09:04:39 -0800
commit4ab9616c766b9a0929e8970569bf7dedd554bcdc (patch)
tree0397a7ab99e10d035426db09b97d5bc47edc90e5
parentMerge branch 'ds/test-read-graph' (diff)
parenttest-lib: don't check prereqs of test cases that won't be run anyway (diff)
downloadtgif-4ab9616c766b9a0929e8970569bf7dedd554bcdc.tar.xz
Merge branch 'sg/skip-skipped-prereq'
Test update to avoid wasted cycles. * sg/skip-skipped-prereq: test-lib: don't check prereqs of test cases that won't be run anyway
-rw-r--r--t/test-lib.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 46c4440843..e8ae150d75 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1004,6 +1004,12 @@ test_skip () {
to_skip=t
skipped_reason="GIT_SKIP_TESTS"
fi
+ if test -z "$to_skip" && test -n "$run_list" &&
+ ! match_test_selector_list '--run' $test_count "$run_list"
+ then
+ to_skip=t
+ skipped_reason="--run"
+ fi
if test -z "$to_skip" && test -n "$test_prereq" &&
! test_have_prereq "$test_prereq"
then
@@ -1016,12 +1022,6 @@ test_skip () {
fi
skipped_reason="missing $missing_prereq${of_prereq}"
fi
- if test -z "$to_skip" && test -n "$run_list" &&
- ! match_test_selector_list '--run' $test_count "$run_list"
- then
- to_skip=t
- skipped_reason="--run"
- fi
case "$to_skip" in
t)