summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-update-file
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/test-apt-update-file')
-rwxr-xr-xtest/integration/test-apt-update-file9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/integration/test-apt-update-file b/test/integration/test-apt-update-file
index c6e07f8b6..04e26a8f4 100755
--- a/test/integration/test-apt-update-file
+++ b/test/integration/test-apt-update-file
@@ -19,9 +19,12 @@ insertsource 'unstable' 'foo' 'all' '1'
setupaptarchive --no-update
# ensure the archive is not writable
-addtrap 'prefix' 'chmod 750 aptarchive/dists/unstable/main/binary-all;'
-chmod 550 aptarchive/dists/unstable/main/binary-all
-
+addtrap 'prefix' 'chmod 755 aptarchive/dists/unstable/main/binary-all;'
+if [ "$(id -u)" = '0' ]; then
+ chmod 550 aptarchive/dists/unstable/main/binary-all
+ testfailure aptget update
+fi
+chmod 555 aptarchive/dists/unstable/main/binary-all
testsuccess aptget update
# the release files aren't an IMS-hit, but the indexes are