diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-07-20 18:38:38 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-07-22 16:05:09 +0200 |
commit | 70bef3257a4dc7751444db8dadedd207bd24ab35 (patch) | |
tree | ba924cded6783d00ef570236a9e4b9b6c218f65f /test | |
parent | e5c3f3ccd98e926b91693d961db4d338fd144301 (diff) |
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
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-apt-acquire-additional-files-duplicates | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/test-apt-acquire-additional-files-duplicates b/test/integration/test-apt-acquire-additional-files-duplicates index 8a919c01d..b0b6460fe 100755 --- a/test/integration/test-apt-acquire-additional-files-duplicates +++ b/test/integration/test-apt-acquire-additional-files-duplicates @@ -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 |