summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-07 13:42:50 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-07 13:45:48 +0100
commitd05936fa35e8fccc8b9eead88379fcdaa2021277 (patch)
tree90293ff06e0231eb50faf996e18b538c751f6148 /tests
parent84026aec1f98aaeb69a751c89a25c55b355c7ee8 (diff)
Test suite: Prepare for pipefail in t-apply-diff
Diffstat (limited to 'tests')
-rw-r--r--tests/lib5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib b/tests/lib
index 0ae9bbc..e960c1c 100644
--- 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 () {