chiark / gitweb /
Test suite: Prepare for pipefail in t-apply-diff
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jun 2015 12:42:50 +0000 (13:42 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jun 2015 12:45:48 +0000 (13:45 +0100)
tests/lib

index 0ae9bbc..e960c1c 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -370,8 +370,9 @@ t-ref-dsc-dgit () {
 t-apply-diff () {
        local v1=$1
        local v2=$2
-       (cd $troot/pkg-srcs; debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc) \
-               | patch -p1 -u
+       (cd $troot/pkg-srcs;
+        debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc || test $? = 1) \
+        | patch -p1 -u
 }
 
 t-commit () {