diff options
author | Thomas Rast <trast@inf.ethz.ch> | 2013-06-18 14:25:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-18 11:15:14 -0700 |
commit | ae75342cff145a326b2213128cca453023521400 (patch) | |
tree | 4235f2eb876f45b0d4af9a1c0af8e8171d717018 /t/test-lib.sh | |
parent | e6a6ddc93a89862319c7876536d79d6d3538de5a (diff) | |
download | git-ae75342cff145a326b2213128cca453023521400.tar.gz |
test-lib: rearrange start/end of test_expect_* and test_skip
This moves
* the early setup part from test_skip to a new function test_start_
* the final common parts of test_expect_* to a new function
test_finish_
to make the next commit more obvious.
Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 4c583b033d..0985ca5eb7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -369,8 +369,15 @@ test_run_ () { return "$eval_ret" } -test_skip () { +test_start_ () { test_count=$(($test_count+1)) +} + +test_finish_ () { + echo >&3 "" +} + +test_skip () { to_skip= if match_pattern_list $this_test.$test_count $GIT_SKIP_TESTS then |