Diff options
Diffstat (limited to 'tests/t0505-auth.sh')
| -rwxr-xr-x | tests/t0505-auth.sh | 6 |
1 file changed, 2 insertions, 4 deletions
diff --git a/tests/t0505-auth.sh b/tests/t0505-auth.sh index 177a5a6..3ae134d 100755 --- a/tests/t0505-auth.sh +++ b/tests/t0505-auth.sh @@ -33,10 +33,8 @@ test_expect_success 'create a repository with one commit' ' ) ' -if cgit_lua_probe "$PWD/repos/authy/.git" openssl.rand openssl.hmac posix.sys.stat posix.unistd -then - test_set_prereq CGIT_LUA_AUTH -elif test "$CGIT_HAS_LUA" -eq 1 +if test "$CGIT_HAS_LUA" -eq 1 && + ! cgit_lua_probe "$PWD/repos/authy/.git" openssl.rand openssl.hmac posix.sys.stat posix.unistd then test_set_prereq CGIT_LUA_NOAUTH say 'cgit lua lacks luaossl or luaposix, expecting protected pages refused' |
