summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2021-11-17 17:22:00 +0000
committerJulian Andres Klode <jak@debian.org>2021-11-17 17:22:00 +0000
commit16706bbae1a1168bd327ce1587b63d9353bab144 (patch)
tree11b77ce7cf551b65e3fe3fcedadc71e1e7f49781 /test/integration
parent68a6dffed6ad5e5dc4ac01319b31843951d0eb21 (diff)
parent891efe3b201a104445ea723a3a5b9b434a78c364 (diff)
Merge branch 'pu/essential-removal' into 'main'
Do not remove Essential/Protected due to dependencies See merge request apt-team/apt!198
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-bug-601961-install-info14
-rwxr-xr-xtest/integration/test-bug-675449-essential-are-protected14
-rwxr-xr-xtest/integration/test-bug-960705-propagate-protected-to-satisfied-conflict2
3 files changed, 27 insertions, 3 deletions
diff --git a/test/integration/test-bug-601961-install-info b/test/integration/test-bug-601961-install-info
index 10944384a..3e135606d 100755
--- a/test/integration/test-bug-601961-install-info
+++ b/test/integration/test-bug-601961-install-info
@@ -35,4 +35,16 @@ This should NOT be done unless you know exactly what you are doing!
findutils essentialpkg (due to findutils)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 2007 kB disk space will be freed.
-E: Trivial Only specified but this is not a trivial operation.' aptget remove essentialpkg --trivial-only
+E: Trivial Only specified but this is not a trivial operation.' aptget remove essentialpkg findutils --trivial-only
+
+testfailureequal 'Reading package lists...
+Building dependency tree...
+Some packages could not be installed. This may mean that you have
+requested an impossible situation or if you are using the unstable
+distribution that some required packages have not yet been created
+or been moved out of Incoming.
+The following information may help to resolve the situation:
+
+The following packages have unmet dependencies:
+ findutils : Depends: essentialpkg but it is not going to be installed
+E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.' aptget remove essentialpkg --trivial-only
diff --git a/test/integration/test-bug-675449-essential-are-protected b/test/integration/test-bug-675449-essential-are-protected
index 69f6c2a3b..e7460aeb7 100755
--- a/test/integration/test-bug-675449-essential-are-protected
+++ b/test/integration/test-bug-675449-essential-are-protected
@@ -100,4 +100,16 @@ This should NOT be done unless you know exactly what you are doing!
foo libfoo (due to foo)
0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded.
Purg foo [1]
-Purg libfoo [1]' aptget purge libfoo -s
+Purg libfoo [1]' aptget purge foo libfoo -s
+
+testequal 'Reading package lists...
+Building dependency tree...
+Some packages could not be installed. This may mean that you have
+requested an impossible situation or if you are using the unstable
+distribution that some required packages have not yet been created
+or been moved out of Incoming.
+The following information may help to resolve the situation:
+
+The following packages have unmet dependencies:
+ foo : Depends: libfoo but it is not going to be installed
+E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.' aptget purge libfoo -s
diff --git a/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict b/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict
index 824851278..c16a27569 100755
--- a/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict
+++ b/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict
@@ -50,4 +50,4 @@ Remv init [1]
MarkDelete systemd-sysv:amd64 < 1 | none @ii H > FU=1
Remv systemd-sysv [1]
Inst runit-init (1 unstable [all])
-Conf runit-init (1 unstable [all])" apt install runit-init -so Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 -o Debug::pkgDepCache::AutoInstall=1
+Conf runit-init (1 unstable [all])" apt install runit-init -so Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 -o Debug::pkgDepCache::AutoInstall=1 -o APT::Get::Allow-Solver-Remove-Essential=1