Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Show unit checks as skipped when no Lua is found
With no standalone interpreter on the path the unit checks were never
registered, so they counted as neither run nor skipped, and a fault in
the version probe dropped them all behind one line of output. The test
bodies now expand their paths as they run, so a quote in a path no
longer breaks them.
Diffstat (limited to 'tests/t0506-link-trailers.sh')
| -rwxr-xr-x | tests/t0506-link-trailers.sh | 8 |
1 file changed, 4 insertions, 4 deletions
diff --git a/tests/t0506-link-trailers.sh b/tests/t0506-link-trailers.sh index 7faafca..87bf7de 100755 --- a/tests/t0506-link-trailers.sh +++ b/tests/t0506-link-trailers.sh @@ -11,11 +11,11 @@ CGIT_TEST_NO_CREATE_REPOS=YesPlease . ./setup.sh . "$TEST_OUTPUT_DIRECTORY/extensions/lib.sh" -for lua in $interpreters +for lua in ${interpreters:-lua} do - test_expect_success "unit checks under $(lua_version "$lua")" " - '$lua' '$EXT_TEST_DIRECTORY/test-link-trailers.lua' '$EXTENSIONS_DIRECTORY/link-trailers.lua' - " + test_expect_success STANDALONE_LUA "unit checks under $(lua_version "$lua")" ' + "$lua" "$EXT_TEST_DIRECTORY/test-link-trailers.lua" "$EXTENSIONS_DIRECTORY/link-trailers.lua" + ' done test_expect_success 'create a repository whose commit carries linkable trailers' ' |
