]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-extracttemplates
test exitcode as well as string equality
[apt.git] / test / integration / test-apt-extracttemplates
index 276862464096bafecb6737947505218daaa90266..5dadc4933058983944211fdb96670da110653e36 100755 (executable)
@@ -35,7 +35,7 @@ Description: Some bar var
        OUT='rootdir/tmp/testsuccess.output'
        testequal "$1" cut -f1 -d' ' $OUT
        if [ -n "$2" ]; then
        OUT='rootdir/tmp/testsuccess.output'
        testequal "$1" cut -f1 -d' ' $OUT
        if [ -n "$2" ]; then
-               testequal '' cut -f2 -d' ' $OUT
+               testequal '' cut -s -f2 -d' ' $OUT
        else
                testequal '1.0' cut -f2 -d' ' $OUT
        fi
        else
                testequal '1.0' cut -f2 -d' ' $OUT
        fi