summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-05-21 16:57:56 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-05-24 17:01:55 +0200
commitaaa9e415ce48964726401462767d6038da6d82e7 (patch)
tree0d2792abbdb4920fb0caa26a5ff12d84f09db55d /test
parent808f51e800a9d6a834723fe1d1fdff98ee14d7b5 (diff)
solver3: Actually restore unsolved items rather than solved ones
When restoring previously solved items, we try to restore items that have become unsolved again by skipping items that have a solved solution. Well at least we thought we did, but we accidentally had a "not" in there that inverted the meaning, hence we lost work items on backtracking. This mostly did not seem to have caused any issues, I stumbled over it while trying to add `autoremove` listings to `upgrade`, but fixing it also fixes: test-ubuntu-bug-1130419-prefer-installed-ma-same-siblings This used to say "E: Broken packages", meaning the solver lost a non-optional install request and the 2nd stage solver caught an incomplete solution. Also test-bug-735967-lib32-to-i386-unavailable restores the legacy solver behavior, so win win?
Diffstat (limited to 'test')
-rw-r--r--test/integration/solver3.broken1
-rwxr-xr-xtest/integration/test-bug-735967-lib32-to-i386-unavailable8
2 files changed, 1 insertions, 8 deletions
diff --git a/test/integration/solver3.broken b/test/integration/solver3.broken
index c098b7498..6575b068d 100644
--- a/test/integration/solver3.broken
+++ b/test/integration/solver3.broken
@@ -27,7 +27,6 @@ test-phased-updates-upgrade
test-prevent-markinstall-multiarch-same-versionscrew
test-release-candidate-switching
test-resolve-by-keep-new-recommends
-test-ubuntu-bug-1130419-prefer-installed-ma-same-siblings
test-ubuntu-bug-1304403-obsolete-priority-standard
test-ubuntu-bug-1990586
test-ubuntu-bug-2025462-phased-dist-upgrade
diff --git a/test/integration/test-bug-735967-lib32-to-i386-unavailable b/test/integration/test-bug-735967-lib32-to-i386-unavailable
index a44e58570..cc925d161 100755
--- a/test/integration/test-bug-735967-lib32-to-i386-unavailable
+++ b/test/integration/test-bug-735967-lib32-to-i386-unavailable
@@ -35,12 +35,6 @@ testsuccess aptget update
testsuccessequal 'Reading package lists...
Building dependency tree...
Calculating upgrade...
-The following packages have been kept back:
- lib32nss-mdns libnss-mdns
-0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.' aptget dist-upgrade -s --solver 3.0
-testsuccessequal 'Reading package lists...
-Building dependency tree...
-Calculating upgrade...
The following packages will be REMOVED:
lib32nss-mdns
The following packages will be upgraded:
@@ -48,7 +42,7 @@ The following packages will be upgraded:
1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv lib32nss-mdns [0.9-1]
Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64])
-Conf libnss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s --solver internal
+Conf libnss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s
testfailuremsg 'E: Unsatisfiable dependency group libfoo:amd64=1 -> libfoo-bin:amd64' aptget install foo -s --solver 3.0
testfailureequal 'Reading package lists...