summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-961266-hold-means-hold
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2020-05-23 15:53:06 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2020-05-23 17:59:19 +0200
commit4f71dc657c34915508a9e34b000e1b577931655a (patch)
tree0e674c8abd70813755ec0dc6ca985c0985fa2a2c /test/integration/test-bug-961266-hold-means-hold
parent4d87856b94dae1a40a1a8147a6dbcfe714cd05c7 (diff)
Keep status number if candidate is discarded for kept back display
It looks like hack and therefore I wanted this to be a very isolated commit so we can find it & revert it easily if need be, but for now it seems to work. The idea is that Status is telling us how the candidate is in relation to the current installed version which is used to figure out if a package is "kept back" by the algorithm or not, but by discarding the candidate version we loose this information. Ideally we would keep better tabs on what we do to a package and why, but for now that seems okayish. It will cause the wrong version to be displayed though as if the package is installed the installed version becomes the candidate and hence (installed => installed) is displayed.
Diffstat (limited to 'test/integration/test-bug-961266-hold-means-hold')
-rwxr-xr-xtest/integration/test-bug-961266-hold-means-hold24
1 files changed, 9 insertions, 15 deletions
diff --git a/test/integration/test-bug-961266-hold-means-hold b/test/integration/test-bug-961266-hold-means-hold
index a104bfc31..89c18ba85 100755
--- a/test/integration/test-bug-961266-hold-means-hold
+++ b/test/integration/test-bug-961266-hold-means-hold
@@ -57,19 +57,13 @@ NOUPGRADE='Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages have been kept back:
- git
-0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.'
-NOUPGRADE2='Reading package lists...
-Building dependency tree...
-Calculating upgrade...
-The following packages have been kept back:
git git-cvs
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.'
testsuccessequal "$NOUPGRADE" apt upgrade -s
testsuccessequal "$NOUPGRADE" apt full-upgrade -s
testsuccessequal "$NOUPGRADE" aptget dist-upgrade -s
-testsuccessequal "$NOUPGRADE2" aptget upgrade -s
+testsuccessequal "$NOUPGRADE" aptget upgrade -s
testfailureequal 'Reading package lists...
Building dependency tree...
@@ -89,10 +83,10 @@ testsuccessequal 'Canceled hold on git.' aptmark unhold git
testsuccessequal 'git-cvs set on hold.' aptmark hold git-cvs
testsuccessequal 'git-cvs' aptmark showholds
-testsuccessequal "$NOUPGRADE2" apt upgrade -s
-testsuccessequal "$NOUPGRADE2" apt full-upgrade -s
-testsuccessequal "$NOUPGRADE2" aptget upgrade -s
-testsuccessequal "$NOUPGRADE2" aptget dist-upgrade -s
+testsuccessequal "$NOUPGRADE" apt upgrade -s
+testsuccessequal "$NOUPGRADE" apt full-upgrade -s
+testsuccessequal "$NOUPGRADE" aptget upgrade -s
+testsuccessequal "$NOUPGRADE" aptget dist-upgrade -s
testfailureequal 'Reading package lists...
Building dependency tree...
@@ -112,10 +106,10 @@ testsuccessequal 'git set on hold.' aptmark hold git
testsuccessequal 'git
git-cvs' aptmark showholds
-testsuccessequal "$NOUPGRADE2" apt upgrade -s
-testsuccessequal "$NOUPGRADE2" apt full-upgrade -s
-testsuccessequal "$NOUPGRADE2" aptget upgrade -s
-testsuccessequal "$NOUPGRADE2" aptget dist-upgrade -s
+testsuccessequal "$NOUPGRADE" apt upgrade -s
+testsuccessequal "$NOUPGRADE" apt full-upgrade -s
+testsuccessequal "$NOUPGRADE" aptget upgrade -s
+testsuccessequal "$NOUPGRADE" aptget dist-upgrade -s
testfailureequal 'Reading package lists...
Building dependency tree...