[PATCH 5/5] am: update test t4254 by adding the new error text
- From
- Philip Peterson via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Feb 18, 2024, 07:33 UTC
- Message-ID
- <c6cbb7b5875cd67485429200369b13a32c2ca886.1708241613.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1666.git.git.1708241612.gitgitgadget@gmail.com>
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 --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 '
-- gitgitgadget