summaryrefslogtreecommitdiff
path: root/test/integration/test-essential-force-loopbreak
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-10-19 14:14:37 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-10-20 10:37:46 +0200
commit1df24acfdb8ba1cd8bbbaa166f170dda480ce41e (patch)
tree992b2cc2f5f02a34a49b5bac160070ec30cf34b1 /test/integration/test-essential-force-loopbreak
parentcecc5532b8d64394a8f8641e78f4a0cc5f7a51fc (diff)
check for failure message in testsuccess/failure
These functions check the exit code of the command, but for apt commands we can go further and require an error message for non-zero exits and none for zero exits. Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-essential-force-loopbreak')
-rwxr-xr-xtest/integration/test-essential-force-loopbreak4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/test-essential-force-loopbreak b/test/integration/test-essential-force-loopbreak
index ac8fc6d28..1493430d8 100755
--- a/test/integration/test-essential-force-loopbreak
+++ b/test/integration/test-essential-force-loopbreak
@@ -37,13 +37,13 @@ The following packages will be upgraded:
E: This installation run will require temporarily removing the essential package sysvinit:$(getarchitecture 'native') due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
E: Internal Error, Could not early remove sysvinit:$(dpkg --print-architecture) (2)" aptget install systemd-sysv -t "$1" -s
# ensure that really nothing happens
- testfailure aptget install systemd-sysv -y -t "$1" -o Debug::pkgPackageManager=1
+ testfailure aptget install systemd-sysv -y -t "$1"
testdpkginstalled 'sysvinit'
testdpkgnotinstalled 'systemd-sysv'
# with enough force however …
cp -a dpkg.status.backup rootdir/var/lib/dpkg/status
- testsuccess aptget install systemd-sysv -y -t "$1" -o Debug::pkgPackageManager=1 -o APT::Force-LoopBreak=1
+ testsuccess aptget install systemd-sysv -y -t "$1" -o APT::Force-LoopBreak=1
testdpkginstalled 'sysvinit' 'systemd-sysv'
}