diff options
author | Julian Andres Klode <jak@debian.org> | 2016-01-12 23:45:59 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-01-12 23:59:35 +0100 |
commit | 7d2794a20bdab9b848bf5b4e88d73527405bad54 (patch) | |
tree | 085298a20e0d59e843649d70d3ac7fbe9067cca8 /test/integration/test-apt-acquire-additional-files | |
parent | b6d88f39aceda2e093e1bf8751f07236b7d9e483 (diff) |
test-apt-acquire-additional-files: Set file mode of touched files
This prevents a test suite failure on systems with weird umasks.
Also set umask 000 at the beginning so we can actually check for
that anywhere.
Gbp-Dch: ignore
Diffstat (limited to 'test/integration/test-apt-acquire-additional-files')
-rwxr-xr-x | test/integration/test-apt-acquire-additional-files | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/test-apt-acquire-additional-files b/test/integration/test-apt-acquire-additional-files index bf7850a7a..522b3adcb 100755 --- a/test/integration/test-apt-acquire-additional-files +++ b/test/integration/test-apt-acquire-additional-files @@ -1,5 +1,7 @@ #!/bin/sh set -e +# Cause umask failures +umask 000 TESTDIR="$(readlink -f "$(dirname "$0")")" . "$TESTDIR/framework" @@ -52,8 +54,10 @@ testequal "$(readfile Contents-amd64 Contents-all)" aptget indextargets --no-rel testempty aptget indextargets --format '$(FILENAME)' 'Created-By: Contents' # lets fake the existence of a compressed Contents file touch "./rootdir/var/lib/apt/lists/localhost:${APTHTTPPORT}_dists_unstable_main_Contents-amd64.gz" +chmod 644 "./rootdir/var/lib/apt/lists/localhost:${APTHTTPPORT}_dists_unstable_main_Contents-amd64.gz" testequal "$(readfile Contents-amd64.gz)" aptget indextargets --format '$(FILENAME)' 'Created-By: Contents' touch "./rootdir/var/lib/apt/lists/localhost:${APTHTTPPORT}_dists_unstable_main_Contents-all.gz" +chmod 644 "./rootdir/var/lib/apt/lists/localhost:${APTHTTPPORT}_dists_unstable_main_Contents-all.gz" testequal "$(readfile Contents-amd64.gz Contents-all.gz)" aptget indextargets --format '$(FILENAME)' 'Created-By: Contents' testequal "'http://localhost:${APTHTTPPORT}/dists/unstable/InRelease' localhost:${APTHTTPPORT}_dists_unstable_InRelease 0 |