]> git.saurik.com Git - apt.git/commitdiff
fix and non-silent fail dpkg-overwrite error test
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 7 Sep 2014 20:08:01 +0000 (22:08 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sun, 7 Sep 2014 20:12:05 +0000 (22:12 +0200)
Commit cbcdd3ee9d86379d1b3a44e41ae8b17dc23111d0 removes the space at the
end of the debfile name dpkg send to us and we previously had included
in the pmerror message we printed on the statusfd.

Git-Dch: Ignore

test/integration/test-apt-progress-fd-error

index 96d66371aa5e1f754516a295de4572461c75809d..a47095b9b9b6457fa34f81d3d2c90afd35158be4 100755 (executable)
@@ -18,5 +18,10 @@ setupaptarchive
 exec 3> apt-progress.log
 testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3
 msgtest "Ensure correct error message"
-grep -q "aptarchive/pool/foo2_0.8.15_amd64.deb :40:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15" apt-progress.log && msgpass || (cat apt-progress.log && msgfail)
+if grep -q "aptarchive/pool/foo2_0.8.15_amd64.deb:40:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15" apt-progress.log; then
+       msgpass
+else
+       cat apt-progress.log
+       msgfail
+fi