summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-01-03 11:54:01 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2022-02-02 13:18:09 +0100
commitd8a13f5dfa0823539b650d2024dc0671fcac1d13 (patch)
tree4ceba09212c25003540aeedbaecdd00f7179c4c6
parentea2b51f29f9510da87d193fe12ac37d19ed4f51b (diff)
Silence ar by warping it in a testsuccess call
The -q flag isn't quiet – it means quick – so ar happily prints an "ar: creating test.deb" which is harmless, but also pointless and it is the only testcase who produces output. Gbp-Dch: Ignore
-rwxr-xr-xtest/integration/test-github-111-invalid-armember6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/test-github-111-invalid-armember b/test/integration/test-github-111-invalid-armember
index e4b897ec3..2340321ce 100755
--- a/test/integration/test-github-111-invalid-armember
+++ b/test/integration/test-github-111-invalid-armember
@@ -9,13 +9,13 @@ setupaptarchive
# this used to crash, but it should treat it as an invalid member header
touch ' '
-ar -q test.deb ' '
+testsuccess ar -q test.deb ' '
testsuccessequal "E: Invalid archive member header" ${APTTESTHELPERSBINDIR}/testdeb test.deb
rm test.deb
touch 'x'
-ar -q test.deb 'x'
+testsuccess ar -q test.deb 'x'
testsuccessequal "E: This is not a valid DEB archive, missing 'debian-binary' member" ${APTTESTHELPERSBINDIR}/testdeb test.deb
@@ -30,5 +30,5 @@ gzip control.tar
cp control.tar.gz data.tar.gz
touch debian-binary
rm test.deb
-ar -q test.deb debian-binary control.tar.gz data.tar.gz
+testsuccess ar -q test.deb debian-binary control.tar.gz data.tar.gz
testsuccessequal "W: Unknown TAR header type 88" ${APTTESTHELPERSBINDIR}/testdeb test.deb