summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-09-03 16:31:04 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-09-03 18:12:38 +0100
commit7e96270076561f28572fc06fc92e40598198df5c (patch)
treef51524dde8dbe10ccd67d1b0b0f566620bf9bcb0
parent8f778c570915339fbda8ce12d314db8d4fee6ccd (diff)
tests: unrepresentable: Add test case for adding executable file
A test case like this was removed in a0ac573f8359 dgit: tolerate making quilt patches creating +x files That removal was a mistake. We should have changed the test outcome. In fact, right now the test outcome is that we can't in fact make new patches like this, because dpkg-source can't. When we try, we createa source package which doesn't represent our git tree. However, dpkg-source can *apply* such patches if they already exist. In #949675, there was an *existing* patch with this property. We don't test for this separately, and never have. Instead, I propose to make all dpkg-source-applicable patches creatable by dgit. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xtests/tests/unrepresentable6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable
index efd2d63..c9ba11c 100755
--- a/tests/tests/unrepresentable
+++ b/tests/tests/unrepresentable
@@ -134,6 +134,12 @@ start src.c
git add src.c
finish 'EP:mode or type changed' LATE-EP:'Mode change from 644 to 755'
+start newx
+ echo hi >newx
+ chmod 755 newx
+ git add newx
+finish BUILD:'differs .* debian/patches' LATE-EP:'Mode change from 644 to 755'
+
start nothing
finish NOTHING NOTHING