Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Drop the exit lines that follow test_done
test_done ends the script on every path, skip_all included.
| -rwxr-xr-x | tests/t0002-html-validity.sh | 2 | |
| -rwxr-xr-x | tests/t0006-nolua.sh | 1 | |
| -rwxr-xr-x | tests/t0302-home-access.sh | 2 | |
| -rwxr-xr-x | tests/t0401-serve.sh | 1 |
4 files changed, 0 insertions, 6 deletions
diff --git a/tests/t0002-html-validity.sh b/tests/t0002-html-validity.sh index f5e918c..15875ba 100755 --- a/tests/t0002-html-validity.sh +++ b/tests/t0002-html-validity.sh @@ -38,7 +38,6 @@ test_url() { tidy=$(command -v tidy) || { skip_all='Skipping html validation tests: tidy not found' test_done - exit } # Releases of tidy that predate HTML5 reject the semantic elements cgit emits, @@ -49,7 +48,6 @@ printf '<!DOCTYPE html>\n<html lang="en"><head><title>t</title></head><body><hea test $? -ge 2 && { skip_all='Skipping html validation tests: tidy is too old for HTML5' test_done - exit } test_expect_success 'index page' 'test_url ""' diff --git a/tests/t0006-nolua.sh b/tests/t0006-nolua.sh index c315e41..86ae47d 100755 --- a/tests/t0006-nolua.sh +++ b/tests/t0006-nolua.sh @@ -13,7 +13,6 @@ nolua="$TEST_OUTPUT_DIRECTORY/../build/nolua/cgit" test -x "$nolua" || { skip_all='Skipping the Lua-less checks: build/nolua/cgit is missing, run make test' test_done - exit } nolua_query() { CGIT_CONFIG="$PWD/$1" QUERY_STRING="$2" "$nolua"; } diff --git a/tests/t0302-home-access.sh b/tests/t0302-home-access.sh index 925716e..e6faa45 100755 --- a/tests/t0302-home-access.sh +++ b/tests/t0302-home-access.sh @@ -16,13 +16,11 @@ test_description='Ensure that git does not access $HOME' command -v strace >/dev/null 2>&1 || { skip_all='Skipping access validation tests: strace not found' test_done - exit } strace true 2>/dev/null || { skip_all='Skipping access validation tests: strace not functional' test_done - exit } test_no_home_access() { diff --git a/tests/t0401-serve.sh b/tests/t0401-serve.sh index 21a6f51..341bbb6 100755 --- a/tests/t0401-serve.sh +++ b/tests/t0401-serve.sh @@ -12,7 +12,6 @@ CGIT_TEST_NO_CREATE_REPOS=YesPlease command -v python3 >/dev/null 2>&1 || { skip_all='Skipping preview server tests: python3 not found' test_done - exit } test_expect_success 'CGI headers and body are split at the first blank line' ' |
