Browse Source

tests: avoid time-dependent rebuild of caches

The tests changes the sources.list and the modification time of this
file is considered while figuring out if the cache can be good. Usually
this isn't an issue, but in that case we have the cache generation
produce warnings which appear twice in this case.

Gbp-Dch: Ignore
tags/debian/1.3_pre3
David Kalnischkies 4 years ago
parent
commit
70bef3257a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      test/integration/test-apt-acquire-additional-files-duplicates

+ 4
- 0
test/integration/test-apt-acquire-additional-files-duplicates View File

@@ -48,6 +48,8 @@ ${APTLISTS}/example.org_debian_dists_stable_rocks_i18n_Translation-en" aptget in
cat >> rootdir/etc/apt/sources.list <<EOF
deb http://example.org/debian stable main rocks
EOF
rm -r rootdir/var/cache/apt/*.bin
testwarning aptcache gencaches
testwarningequal "${APTLISTS}/example.org_debian_dists_stable_main_source_Sources
${APTLISTS}/example.org_debian_dists_stable_rocks_source_Sources
${APTLISTS}/example.org_debian_dists_stable_main_binary-amd64_Packages
@@ -71,6 +73,8 @@ cat >> rootdir/etc/apt/sources.list <<EOF
deb [target=Contents1,Contents2,Contentsflat arch=amd64] http://example.org/debian stable main rocks
deb-src [target=Contents1,Contents2,Contentsflat arch=amd64] http://example.org/debian stable main rocks
EOF
rm -r rootdir/var/cache/apt/*.bin
testwarning aptcache gencaches
testwarningequal "${APTLISTS}/example.org_debian_dists_stable_main_source_Sources
${APTLISTS}/example.org_debian_dists_stable_rocks_source_Sources
${APTLISTS}/example.org_debian_dists_stable_main_binary-amd64_Packages


Loading…
Cancel
Save