aboutsummaryrefslogtreecommitdiffstats
path: root/patch-test
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpatch-test/__test6
1 files changed, 4 insertions, 2 deletions
diff --git a/patch-test/__test b/patch-test/__test
index 82605f1..20d1258 100755
--- a/patch-test/__test
+++ b/patch-test/__test
@@ -80,10 +80,12 @@ run ()
fi
val=$?
if test $val = $x && test $2 = fuzzy; then
- grep 'ward fuzz' < tmp >/dev/null
+ grep -i 'ward fuzz' < tmp > /dev/null ||
+ grep -i 'hunk #1 succeeded .*offset' < tmp > /dev/null
val=$?
elif test $val = $x && test $2 = applied; then
- grep 'hunk number 2 of 2' < tmp >/dev/null
+ grep -i 'hunk number 2 of 2' < tmp > /dev/null ||
+ grep -i 'hunk #2 failed' < tmp > /dev/null
val=$?
fi