Diff options
Diffstat (limited to 'tests/t0505-auth.sh')
| -rwxr-xr-x | tests/t0505-auth.sh | 5 |
1 file changed, 3 insertions, 2 deletions
diff --git a/tests/t0505-auth.sh b/tests/t0505-auth.sh index e9349d4..3b49c7e 100755 --- a/tests/t0505-auth.sh +++ b/tests/t0505-auth.sh @@ -69,9 +69,10 @@ test_expect_success CGIT_LUA_NOAUTH 'without the modules a protected repository repo.url=authy repo.path=$PWD/repos/authy/.git EOF - cgit_rc guardedrc "url=authy/log/" >tmp && + cgit_rc guardedrc "url=authy/log/" >tmp 2>err && ! grep "guarded commit" tmp && - grep "Unable to complete the request" tmp + grep "<p class=.login-error. role=.alert.>Logins are unavailable" tmp && + grep "^\[cgit\] " err ' # A filter of the test's own turns every visitor away, which needs no Lua. |
