]> 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 d9282eedeac118ad3aa42ac3bb02f1d4b37c9a14..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
@@ -1555,7 +1562,7 @@ listcurrentlistsdirectory() {
        } | sort
 }
 
-### convinience hacks ###
+### convenience hacks ###
 mkdir() {
        # creating some directories by hand is a tedious task, so make it look simple
        if [ "$*" = '-p rootdir/var/lib/apt/lists' ] || [ "$*" = "${TMPWORKINGDIRECTORY}/rootdir/var/lib/apt/lists" ] ||