diff options
Diffstat (limited to 'test')
| -rwxr-xr-x | test/integration/test-apt-ftparchive-cachedb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/test-apt-ftparchive-cachedb b/test/integration/test-apt-ftparchive-cachedb index f6e71ccdb..c005804e6 100755 --- a/test/integration/test-apt-ftparchive-cachedb +++ b/test/integration/test-apt-ftparchive-cachedb @@ -86,6 +86,11 @@ testsuccessequal ' Misses in Cache: 2 dists/test/Contents-i386: New 402 B Misses in Cache: 0' grep Misses stats-out.txt # generate again +# ensure Contents file is not newer than Packages file; to avoid a race condition with the +# test case: If Contents file happened to be newer than the Packages file, we'd skip its +# generation (failing the test case); but if they are generated at the same time it may +# be out-of-date strictly speaking and needed regenerating. +touch -r ./aptarchive/dists/test/main/binary-i386/Packages ./aptarchive/dists/test/Contents-i386* testsuccess aptftparchive generate ftparchive.conf -o APT::FTPArchive::ShowCacheMisses=1 cp rootdir/tmp/testsuccess.output stats-out.txt ensure_correct_packages_file |
