summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-09-02 19:19:14 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-09-03 18:12:46 +0100
commit021c3ce3426825731a94ce0312da16c70d84c5df (patch)
tree49ed9c33997a760c3a920edce18547676b2e0f1e /tests
parent330eeb5cbc8dcd3bf7df790399e50256983f6847 (diff)
dgit: unrepresentable check: Normalise the mode for exec
Now we use git diffs, which can represent changes to the executability of files. dpkg-source uses diff(1) to apply these. So it all works. Handle this by normalising the +x bits before seeing if the mode changed. Now we properly support executable files. Closes: #995056 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/unrepresentable2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable
index fa1f985..70f7f78 100755
--- a/tests/tests/unrepresentable
+++ b/tests/tests/unrepresentable
@@ -132,7 +132,7 @@ finish GOOD:'deleted unwritable' LATE-EP:'Mode change from 644 to 000000'
start src.c
chmod +x src.c
git add src.c
-finish 'EP:mode or type changed' LATE-EP:'Mode change from 644 to 755'
+finish GOOD:chmod LATE-EP:'Mode change from 644 to 755'
start newx
echo hi >newx