]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-progress-fd-error
fix testcase expecting incorrect remove log from dpkg
[apt.git] / test / integration / test-apt-progress-fd-error
CommitLineData
42c1513b
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
42c1513b
MV
6
7setupenvironment
90b56f54 8configarchitecture 'native'
42c1513b
MV
9
10mkdir -p usr/bin
11touch usr/bin/file-conflict
12
90b56f54
DK
13buildsimplenativepackage 'foo1' 'native' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
14buildsimplenativepackage 'foo2' 'native' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
84255101 15insertinstalledpackage 'apport' 'native' '1'
42c1513b 16
90b56f54 17setupaptarchive
42c1513b
MV
18
19exec 3> apt-progress.log
20testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3
90b56f54 21msgtest 'Ensure correct error message'
f4959924 22testsuccess --nomsg grep "foo2_0.8.15_[^.]\+.deb:36.3636:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15" apt-progress.log
84255101
DK
23
24testsuccess test -s rootdir/var/crash/foo2.0.crash
25testsuccess grep '^Package: foo2 0.8.15$' rootdir/var/crash/foo2.0.crash