t0000-*.sh: fix the GIT_SKIP_TESTS sub-tests
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
0445e6f0a1
commit
7e28c16fdb
|
@ -296,7 +296,8 @@ test_expect_success 'test --verbose-only' '
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'GIT_SKIP_TESTS' "
|
test_expect_success 'GIT_SKIP_TESTS' "
|
||||||
GIT_SKIP_TESTS='git.2' \
|
(
|
||||||
|
GIT_SKIP_TESTS='git.2' && export GIT_SKIP_TESTS &&
|
||||||
run_sub_test_lib_test git-skip-tests-basic \
|
run_sub_test_lib_test git-skip-tests-basic \
|
||||||
'GIT_SKIP_TESTS' <<-\\EOF &&
|
'GIT_SKIP_TESTS' <<-\\EOF &&
|
||||||
for i in 1 2 3
|
for i in 1 2 3
|
||||||
|
@ -312,10 +313,12 @@ test_expect_success 'GIT_SKIP_TESTS' "
|
||||||
> # passed all 3 test(s)
|
> # passed all 3 test(s)
|
||||||
> 1..3
|
> 1..3
|
||||||
EOF
|
EOF
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
|
||||||
test_expect_success 'GIT_SKIP_TESTS several tests' "
|
test_expect_success 'GIT_SKIP_TESTS several tests' "
|
||||||
GIT_SKIP_TESTS='git.2 git.5' \
|
(
|
||||||
|
GIT_SKIP_TESTS='git.2 git.5' && export GIT_SKIP_TESTS &&
|
||||||
run_sub_test_lib_test git-skip-tests-several \
|
run_sub_test_lib_test git-skip-tests-several \
|
||||||
'GIT_SKIP_TESTS several tests' <<-\\EOF &&
|
'GIT_SKIP_TESTS several tests' <<-\\EOF &&
|
||||||
for i in 1 2 3 4 5 6
|
for i in 1 2 3 4 5 6
|
||||||
|
@ -334,10 +337,12 @@ test_expect_success 'GIT_SKIP_TESTS several tests' "
|
||||||
> # passed all 6 test(s)
|
> # passed all 6 test(s)
|
||||||
> 1..6
|
> 1..6
|
||||||
EOF
|
EOF
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
|
||||||
test_expect_success 'GIT_SKIP_TESTS sh pattern' "
|
test_expect_success 'GIT_SKIP_TESTS sh pattern' "
|
||||||
GIT_SKIP_TESTS='git.[2-5]' \
|
(
|
||||||
|
GIT_SKIP_TESTS='git.[2-5]' && export GIT_SKIP_TESTS &&
|
||||||
run_sub_test_lib_test git-skip-tests-sh-pattern \
|
run_sub_test_lib_test git-skip-tests-sh-pattern \
|
||||||
'GIT_SKIP_TESTS sh pattern' <<-\\EOF &&
|
'GIT_SKIP_TESTS sh pattern' <<-\\EOF &&
|
||||||
for i in 1 2 3 4 5 6
|
for i in 1 2 3 4 5 6
|
||||||
|
@ -356,6 +361,7 @@ test_expect_success 'GIT_SKIP_TESTS sh pattern' "
|
||||||
> # passed all 6 test(s)
|
> # passed all 6 test(s)
|
||||||
> 1..6
|
> 1..6
|
||||||
EOF
|
EOF
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
|
||||||
test_expect_success '--run basic' "
|
test_expect_success '--run basic' "
|
||||||
|
|
Loading…
Reference in New Issue