]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
allow explicit dis/enable of IndexTargets in sources options
[apt.git] / test / integration / framework
index c046507e436348c56df8506d85c3cf2af4b0701a..03f1be114d1e83dba0b397ad867f5e80dcec4162 100644 (file)
@@ -1196,9 +1196,16 @@ checkdiff() {
 }
 
 testfileequal() {
+       local MSG='Test for correctness of file'
+       if [ "$1" = '--nomsg' ]; then
+               MSG=''
+               shift
+       fi
        local FILE="$1"
        shift
-       msgtest "Test for correctness of file" "$FILE"
+       if [ -n "$MSG" ]; then
+               msgtest "$MSG" "$FILE"
+       fi
        if [ -z "$*" ]; then
                echo -n "" | checkdiff - $FILE && msgpass || msgfail
        else