From 9a67baff6ec298721ccec0978cb3b845dbb0ed05 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:37:17 -0700 Subject: Drop an auth prerequisite no test asks for --- tests/t0505-auth.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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' -- cgit