From 0d2e0cc2758571d70a64017d12990a2dab62480e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 20 Jan 2021 13:33:12 -0500 Subject: Fix tests for diff spans --- www/git.causal.agency/cgit/tests/t0105-commit.sh | 4 ++-- www/git.causal.agency/cgit/tests/t0106-diff.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'www') diff --git a/www/git.causal.agency/cgit/tests/t0105-commit.sh b/www/git.causal.agency/cgit/tests/t0105-commit.sh index 9e34abd2..d5ff96c8 100755 --- a/www/git.causal.agency/cgit/tests/t0105-commit.sh +++ b/www/git.causal.agency/cgit/tests/t0105-commit.sh @@ -29,8 +29,8 @@ test_expect_success 'root commit contains diffstat' ' ' test_expect_success 'root commit contains diff' ' - grep ">diff --git a/file-1 b/file-1<" tmp && - grep "
+1
" tmp + grep ">diff --git a/file-1 b/file-1" tmp && + grep "+1" tmp ' test_done diff --git a/www/git.causal.agency/cgit/tests/t0106-diff.sh b/www/git.causal.agency/cgit/tests/t0106-diff.sh index 82b645ec..62a0a74a 100755 --- a/www/git.causal.agency/cgit/tests/t0106-diff.sh +++ b/www/git.causal.agency/cgit/tests/t0106-diff.sh @@ -9,11 +9,11 @@ test_expect_success 'find blob link' 'grep "@@ -0,0 +1 @@" tmp + grep "@@ -0,0 +1 @@" tmp ' test_expect_success 'find added line' ' - grep "
+5
" tmp + grep "+5" tmp ' test_done -- cgit 1.4.1