diff mbox series

[5/5] am: update test t4254 by adding the new error text

Message ID c6cbb7b5875cd67485429200369b13a32c2ca886.1708241613.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series promise: introduce promises to track success or error | expand

Commit Message

Philip Peterson Feb. 18, 2024, 7:33 a.m. UTC
From: Philip Peterson <philip.c.peterson@gmail.com>

The old error text was shorter than the new, so this just adds the new
context message to the expected text.

Signed-off-by: Philip Peterson <philip.c.peterson@gmail.com>
---
 t/t4254-am-corrupt.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/t/t4254-am-corrupt.sh b/t/t4254-am-corrupt.sh
index 45f1d4f95e5..265bcc41bbd 100755
--- a/t/t4254-am-corrupt.sh
+++ b/t/t4254-am-corrupt.sh
@@ -60,7 +60,14 @@  test_expect_success setup '
 test_expect_success 'try to apply corrupted patch' '
 	test_when_finished "git am --abort" &&
 	test_must_fail git -c advice.amWorkDir=false am bad-patch.diff 2>actual &&
-	echo "error: git diff header lacks filename information (line 4)" >expected &&
+	space=" " &&
+	echo \
+"error:$space
+	could not find header
+caused by:
+	could not find file diff header
+caused by:
+	git diff header lacks filename information (line 4)" >expected &&
 	test_path_is_file f &&
 	test_cmp expected actual
 '