Skip to content

Commit

Permalink
am: update test t4254 by adding the new error text
Browse files Browse the repository at this point in the history
The old error text was shorter than the new, so this just adds the new
context message to the expected text.
  • Loading branch information
philip-peterson committed Feb 14, 2024
1 parent 306641d commit 1743e58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/t4254-am-corrupt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ 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 &&
echo \
"error:
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
'
Expand Down

0 comments on commit 1743e58

Please sign in to comment.