]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-254770-segfault-if-cache-not-buildable
ensure the right permissions as dpkg-deb ensists
[apt.git] / test / integration / test-bug-254770-segfault-if-cache-not-buildable
index 25c564daa6e3a6880efd5df89480d62b9f62a01a..59102ddc9d1bece7e124e4facd0ad3046f7e9c5e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
@@ -12,14 +12,13 @@ trap "$CURRENTTRAP" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
 chmod a-x rootdir/var/lib/dpkg
 
 testsegfault() {
-       rm -f rootdir/var/cache/apt/*.bin
        msgtest "No segfault in" "$*"
        local TEST="$($* 2>&1 | grep -v 'E:')"
        if [ -z "$TEST" ]; then
                msgpass
        else
                echo
-               echo $TEST
+               echo "$TEST"
                msgfail
        fi
 }