summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-update-failure-propagation
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2021-01-08 20:48:38 +0000
committerJulian Andres Klode <jak@debian.org>2021-01-08 20:48:38 +0000
commit2ba639f71736067b53903f11c8c75e9701972c3f (patch)
tree979d87e4f479100dda85f65452eba90fb4053b41 /test/integration/test-apt-update-failure-propagation
parentd35d51ddbdc75512a73e713972f4bbb5a1fd73ae (diff)
parentc7123bea6a8dc2c9e327ce41ddfc25e29f1bb145 (diff)
Merge branch 'pu/apt-update-error-modes' into 'master'
Implement update --error-on=any See merge request apt-team/apt!150
Diffstat (limited to 'test/integration/test-apt-update-failure-propagation')
-rwxr-xr-xtest/integration/test-apt-update-failure-propagation6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/test-apt-update-failure-propagation b/test/integration/test-apt-update-failure-propagation
index 44f2e7048..8c7fd3b7e 100755
--- a/test/integration/test-apt-update-failure-propagation
+++ b/test/integration/test-apt-update-failure-propagation
@@ -88,3 +88,9 @@ testwarning aptget update -o Dir::Bin::Methods::https="${OLDMETHODS}/https"
testsuccess grep '^W: Failed to fetch https://localhost:666/dists/stable/InRelease ' rootdir/tmp/testwarning.output
testequal 'W: Some index files failed to download. They have been ignored, or old ones used instead.' tail -n 1 rootdir/tmp/testwarning.output
posttest
+
+pretest 'error-mode=any' 'doom port'
+testfailure aptget update -o Dir::Bin::Methods::https="${OLDMETHODS}/https" -eany
+testsuccess grep '^E: Failed to fetch https://localhost:666/dists/stable/InRelease ' rootdir/tmp/testfailure.output
+testequal 'E: Some index files failed to download. They have been ignored, or old ones used instead.' tail -n 1 rootdir/tmp/testfailure.output
+posttest