From: Karl Wiberg Date: Wed, 15 Jul 2009 09:25:53 +0000 (+0200) Subject: t2800: Adapt to changes in git's conflict markers X-Git-Tag: v0.15-rc2~19^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/533d85c2f663a7e89816b23c627a118866ab00fb t2800: Adapt to changes in git's conflict markers The conflict markers used by git were changed slightly by commit 606475f3 ("Remove filename from conflict markers"); specifically, the conflict markers contain the filename only when the filename has changed. This patch adapts t2800 to allow either the new or the old format. Signed-off-by: Karl Wiberg --- diff --git a/t/t2800-goto-subdir.sh b/t/t2800-goto-subdir.sh index 855972b..5960bd6 100755 --- a/t/t2800-goto-subdir.sh +++ b/t/t2800-goto-subdir.sh @@ -36,7 +36,8 @@ test_expect_success 'Prepare conflicting goto' ' stg delete p2 ' -cat > expected1.txt < expected1a.txt <>>>>>> patched:foo/bar EOF + +# ... and this result after commit 606475f3. +cat > expected1b.txt <>>>>>> patched +EOF + cat > expected2.txt < actual.txt && - test_cmp expected1.txt actual.txt && + ( test_cmp expected1a.txt actual.txt \ + || test_cmp expected1b.txt actual.txt ) && ls foo > actual.txt && test_cmp expected2.txt actual.txt '