X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/caf557a2ba666ad87a1ebd5b40750feaf1bd631f..67d0f870506e3bc3703ae3cb2cb00e19691ce967:/tests/t0111-filter.sh diff --git a/tests/t0111-filter.sh b/tests/t0111-filter.sh index c89020a..2fdc366 100755 --- a/tests/t0111-filter.sh +++ b/tests/t0111-filter.sh @@ -3,7 +3,12 @@ test_description='Check filtered content' . ./setup.sh -for prefix in exec lua +prefixes="exec" +if [ $CGIT_HAS_LUA -eq 1 ]; then + prefixes="$prefixes lua" +fi + +for prefix in $prefixes do test_expect_success "generate filter-$prefix/tree/a%2bb" " cgit_url 'filter-$prefix/tree/a%2bb' >tmp @@ -30,11 +35,11 @@ do ' test_expect_success "check whether the $prefix email filter works for authors" ' - grep "A U THOR <AUTHOR@EXAMPLE.COM>" tmp + grep " commit A U THOR <AUTHOR@EXAMPLE.COM>" tmp ' test_expect_success "check whether the $prefix email filter works for committers" ' - grep "C O MITTER <COMMITTER@EXAMPLE.COM>" tmp + grep " commit C O MITTER <COMMITTER@EXAMPLE.COM>" tmp ' done