Browse Source

test-pdiff-usage: make transaction failure test case more robust

Try 10 times in a row
tags/debian/1.8.0_alpha3
Julian Andres Klode 2 years ago
parent
commit
f35601e5d2
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      test/integration/test-pdiff-usage

+ 7
- 1
test/integration/test-pdiff-usage View File

@@ -251,7 +251,13 @@ SHA256-Download:
cp Packages-future aptarchive/Packages
rm -f rootdir/var/lib/apt/lists/*_Contents-*
webserverconfig 'aptwebserver::overwrite::.*Contents-.*::filename' '/hacked-i386.gz'
testfailure apt update "$@"
# This should work in at least 4% of the cases...
for i in $(seq 25); do
testfailure apt update "$@"
if ! grep 'rred:600' rootdir/tmp/testfailure.output; then
break
fi
done
webserverconfig 'aptwebserver::overwrite::.*Contents-.*::filename' '/Contents-i386.gz'
cp rootdir/tmp/testfailure.output patchdownload.output
testfailure grep 'rred:600' patchdownload.output


Loading…
Cancel
Save