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/t0504-email-avatar.sh')
| -rwxr-xr-x | tests/t0504-email-avatar.sh | 20 |
1 file changed, 10 insertions, 10 deletions
diff --git a/tests/t0504-email-avatar.sh b/tests/t0504-email-avatar.sh index 10b9fca..1b82a41 100755 --- a/tests/t0504-email-avatar.sh +++ b/tests/t0504-email-avatar.sh @@ -14,22 +14,22 @@ CGIT_TEST_NO_CREATE_REPOS=YesPlease . ./setup.sh . "$TEST_OUTPUT_DIRECTORY/extensions/lib.sh" -for lua in $interpreters +for lua in ${interpreters:-lua} do for script in email-gravatar email-libravatar do - test_expect_success "$script checks under $(lua_version "$lua")" " - '$lua' '$EXT_TEST_DIRECTORY/test-email-avatar.lua' '$EXTENSIONS_DIRECTORY/$script.lua' stub - " - test_expect_success "$script checks without luaossl under $(lua_version "$lua")" " - '$lua' '$EXT_TEST_DIRECTORY/test-email-avatar.lua' '$EXTENSIONS_DIRECTORY/$script.lua' missing - " + test_expect_success STANDALONE_LUA "$script checks under $(lua_version "$lua")" ' + "$lua" "$EXT_TEST_DIRECTORY/test-email-avatar.lua" "$EXTENSIONS_DIRECTORY/$script.lua" stub + ' + test_expect_success STANDALONE_LUA "$script checks without luaossl under $(lua_version "$lua")" ' + "$lua" "$EXT_TEST_DIRECTORY/test-email-avatar.lua" "$EXTENSIONS_DIRECTORY/$script.lua" missing + ' if "$lua" -e "require([[openssl.digest]])" >/dev/null 2>&1 then - test_expect_success "$script checks with real luaossl under $(lua_version "$lua")" " - '$lua' '$EXT_TEST_DIRECTORY/test-email-avatar.lua' '$EXTENSIONS_DIRECTORY/$script.lua' real - " + test_expect_success STANDALONE_LUA "$script checks with real luaossl under $(lua_version "$lua")" ' + "$lua" "$EXT_TEST_DIRECTORY/test-email-avatar.lua" "$EXTENSIONS_DIRECTORY/$script.lua" real + ' fi done done |
