diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-01-08 17:52:53 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-01-08 17:58:44 +0100 |
commit | c7123bea6a8dc2c9e327ce41ddfc25e29f1bb145 (patch) | |
tree | 979d87e4f479100dda85f65452eba90fb4053b41 /test/integration | |
parent | d35d51ddbdc75512a73e713972f4bbb5a1fd73ae (diff) |
Implement update --error-on=any
People have been asking for a feature to error out on transient network
errors for a while, this gives them one while keeping the door open for
other modes we need, such as --error-on=no-success which we need to
determine when to retry the daily update job.
Closes: #594813
(and a whole bunch of duplicates...)
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/test-apt-update-failure-propagation | 6 |
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 |