X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1410955589dc9f0eaa290907cac070b7ebf93b6a..47d7761243a02368bb60b7227bd05a19ca4660d1:/test/integration/framework diff --git a/test/integration/framework b/test/integration/framework index 6620c78dd..ca2f90050 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -951,11 +951,20 @@ testempty() { } testequal() { + local MSG='Test of equality of' + if [ "$1" = '--nomsg' ]; then + MSG='' + shift + fi + local COMPAREFILE=$(mktemp) addtrap "rm $COMPAREFILE;" echo "$1" > $COMPAREFILE shift - msgtest "Test for equality of" "$*" + + if [ -n "$MSG" ]; then + msgtest "$MSG" "$*" + fi $* 2>&1 | checkdiff $COMPAREFILE - && msgpass || msgfail }