summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-01-08 17:51:23 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2016-01-08 17:51:23 +0100
commitef3c549e00b2a0487ddee0aeb70e3a29f76c2fbb (patch)
tree641cb5d6cc00b1efa5f111a5839c328662ca3f77 /test/integration
parent4e6219da0dd1e68fad7db972f7ddd76598645228 (diff)
remove uncompressed leftover partial file before pdiff bootstrap
The code already deals with compressed leftovers, but forgot the uncompressed files. The opertunity is picked to reorder this code and add debug messages about the actions taken as well as produce such a leftover file in the associated testcase.
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-pdiff-usage6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/test-pdiff-usage b/test/integration/test-pdiff-usage
index bf7779e40..253abb92c 100755
--- a/test/integration/test-pdiff-usage
+++ b/test/integration/test-pdiff-usage
@@ -60,6 +60,9 @@ testrun() {
" aptcache show apt oldstuff
configcompression '.' 'gz'
+ # see if the code deals properly with leftover partial files
+ touch rootdir/var/lib/apt/lists-bak/partial/localhost:${APTHTTPPORT}_Packages
+
msgmsg "Testcase: apply with one patch: $*"
find aptarchive -name 'Packages*' -type f -delete
cp "${PKGFILE}-new" aptarchive/Packages
@@ -208,6 +211,9 @@ SHA256-Download:
msgmsg "Testcase: pdiff patch bigger than index itself: $*"
rm -rf rootdir/var/lib/apt/lists
cp -a rootdir/var/lib/apt/lists-bak rootdir/var/lib/apt/lists
+ # the general testcode checks for leftovers in partial, but as this file
+ # is never touched in this test as it exits earlier its not a leftover…
+ rm -f rootdir/var/lib/apt/lists/partial/localhost:${APTHTTPPORT}_Packages
cp "${PKGFILE}-new" aptarchive/Packages
compressfile 'aptarchive/Packages'
mkdir -p aptarchive/Packages.diff