summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-07-21 09:31:50 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-22 16:09:15 +0100
commit4bbb0ea95dcf9be8e26f19424ad3b5269a556783 (patch)
treeb35e76567d1e57197a8200486b3cabb087b503dd /tests
parentf6f6419eca67882b47632875d2ee7163f4d005c7 (diff)
git-debpush: Check that patches are (un)applicable
Closes: #932477 Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/tagupl-baredebian11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/tests/tagupl-baredebian b/tests/tests/tagupl-baredebian
index 764debd..b485abb 100755
--- a/tests/tests/tagupl-baredebian
+++ b/tests/tests/tagupl-baredebian
@@ -17,7 +17,18 @@ t-tagupl-settings
baredebian-test-minimum
baredebian-test-core-prepush
+
+sed -i '15icorruption' debian/patches/0002-Edit-the-.c-file.patch
+git add debian/patches/0002-Edit-the-.c-file.patch
+git commit -m"corrupt a quilt patch to test the patches-applicable check"
+
tagname=test-dummy/$v
+
+t-expect-fail "'git apply' failed to apply patch 0002-Edit-the-.c-file.patch ('patches-applicable' check)" \
+t-tagupl-test --baredebian
+
+git reset --hard HEAD~1
+
t-tagupl-test --baredebian
git branch split.p dgit/dgit/sid # we didn't generate this here