]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
do use an 'unknown' arch-specification in test
[apt.git] / test / integration / framework
index 3bbf440c82c29e4d15989bb451fe9d130db4c3a8..fde74f55decfecb3bba4f9cb17b80f5ce20bae38 100644 (file)
@@ -1019,7 +1019,13 @@ testfileequal() {
 
 testempty() {
        msgtest "Test for no output of" "$*"
-       test -z "$($* 2>&1)" && msgpass || msgfail
+       local COMPAREFILE="${TMPWORKINGDIRECTORY}/rootdir/tmp/testempty.comparefile"
+       if $* >$COMPAREFILE 2>&1 && test ! -s $COMPAREFILE; then
+               msgpass
+       else
+               cat $COMPAREFILE
+               msgfail
+       fi
 }
 
 testequal() {