diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-03-22 21:35:57 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-03-22 21:48:49 +0100 |
commit | d151adbf2cc4d23c240c6c4fcfbfda439a98c36f (patch) | |
tree | 8568d8cfb43868e4a3c26d94ff9042530f0bf2dd /test/integration/test-apt-progress-fd-error-postinst | |
parent | ce62f1def6565375ce9c56eb1237ccdc0ca138ba (diff) |
ensure proper teardown in dpkg error cases
We have to properly close our pseudo terminals even in error cases
before we call post-invoke scripts. This is done now by breaking from
the dpkg calling loop instead of copying the handling, which did it in
the wrong order before.
This also ensures that our state file is written in error cases to
record autobit and co as this was forgotten before.
Closes: 738969
Diffstat (limited to 'test/integration/test-apt-progress-fd-error-postinst')
-rwxr-xr-x | test/integration/test-apt-progress-fd-error-postinst | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/integration/test-apt-progress-fd-error-postinst b/test/integration/test-apt-progress-fd-error-postinst deleted file mode 100755 index 0b6e70212..000000000 --- a/test/integration/test-apt-progress-fd-error-postinst +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -set -e - -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework - -setupenvironment -configarchitecture 'amd64' 'i386' - -mkdir -p DEBIAN/ -echo "#!/bin/sh\nexit 1" > DEBIAN/postinst -chmod 755 DEBIAN/postinst - -buildsimplenativepackage 'postinst-error' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with posinst error' '' '' './DEBIAN' - -setupaptarchive - -exec 3> apt-progress.log -testfailure aptget install postinst-error -y -o APT::Status-Fd=3 -msgtest "Ensure correct error message for postinst error" -grep -q "pmerror:postinst-error :80:subprocess installed post-installation script returned error exit status 2" apt-progress.log && msgpass || msgfail - |