]> granicus.if.org Git - cgit/commitdiff
tests: check for proper html entity
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 17 Oct 2012 15:17:48 +0000 (17:17 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 17 Oct 2012 15:18:35 +0000 (17:18 +0200)
Since we're now properly writing ampersand literals as &amp; instead of
as a plain &, we need to update the test accordingly.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tests/t0103-log.sh

index 75dd761a0b51d6e9cde61b6fdebf019e43b81daa..7fa6754de90fc7c3af1b7c0180acbdc9077a7380 100755 (executable)
@@ -17,7 +17,7 @@ run_test 'generate "with%20space/log?qt=grep&q=commit+1"' '
 '
 run_test 'find commit 1' 'grep -e "commit 1" trash/tmp'
 run_test 'find link with %20 in path' 'grep -e "/with%20space/log/?qt=grep" trash/tmp'
-run_test 'find link with + in arg' 'grep -e "/log/?qt=grep&q=commit+1" trash/tmp'
+run_test 'find link with + in arg' 'grep -e "/log/?qt=grep&amp;q=commit+1" trash/tmp'
 run_test 'no links with space in path' '! grep -e "href=./with space/" trash/tmp'
 run_test 'no links with space in arg' '! grep -e "q=commit 1" trash/tmp'
 run_test 'commit 2 is not visible' '! grep -e "commit 2" trash/tmp'