aboutsummaryrefslogtreecommitdiffstats
path: root/patch-test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-30 20:29:09 +0200
committerMattias Andrée <maandree@kth.se>2016-03-30 20:29:09 +0200
commit8e47c389e81dd32e020d3739a3d9439beaad37d6 (patch)
treef13c99b666fa8f8236ff88de10d211c80bc2142b /patch-test
parentadd printenv test (diff)
downloadbase-util-tests-8e47c389e81dd32e020d3739a3d9439beaad37d6.tar.gz
base-util-tests-8e47c389e81dd32e020d3739a3d9439beaad37d6.tar.bz2
base-util-tests-8e47c389e81dd32e020d3739a3d9439beaad37d6.tar.xz
some improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
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