]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-605394-versioned-or-groups
test: Use :$(id -gn) instead of :root (when run as root)
[apt.git] / test / integration / test-bug-605394-versioned-or-groups
CommitLineData
c427b1e2
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
c427b1e2
DK
6setupenvironment
7configarchitecture "i386"
8setupaptarchive
9
25b86db1 10testfailureequal "Reading package lists...
c427b1e2 11Building dependency tree...
2a884c61 12Calculating upgrade...
c427b1e2
DK
13The following packages will be upgraded:
14 php5 php5-cgi
152 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
16Need to get 0 B/5715 kB of archives.
17After this operation, 0 B of additional disk space will be used.
18E: Trivial Only specified but this is not a trivial operation." aptget dist-upgrade --trivial-only
19
20msgtest "Solution process doesn't involve" 'apache2-mpm-prefork'
21
22if aptget dist-upgrade --trivial-only -o Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 2>&1 | grep apache2-mpm-prefork > /dev/null; then
23 msgfail
24else
25 msgpass
26fi