]> git.saurik.com Git - apt.git/commitdiff
remove the temporary compare files we create
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 29 Jul 2010 13:09:18 +0000 (15:09 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 29 Jul 2010 13:09:18 +0000 (15:09 +0200)
test/integration/framework

index 7b323fdb53c902e0f13a4f35d40c498ff7e5f6b2..b4e9302e8f90c992d2a27740d4495efdad1360d0 100644 (file)
@@ -147,6 +147,7 @@ testequal() {
        shift
        msgtest "Test for equality of" "$*"
        $* 2>&1 | diff $COMPAREFILE - && msgpass || msgfail
+       rm $COMPAREFILE
 }
 
 testequalor2() {
@@ -163,6 +164,7 @@ testequalor2() {
                ( echo "\n${CINFO}Diff against OR 1${CNORMAL}" "$(diff $COMPAREFILE1 $COMPAREAGAINST)" \
                       "\n${CINFO}Diff against OR 2${CNORMAL}" "$(diff $COMPAREFILE2 $COMPAREAGAINST)" &&
                  msgfail )
+       rm $COMPAREFILE1 $COMPAREFILE2 $COMPAREAGAINST
 }
 
 testshowvirtual() {
@@ -183,6 +185,7 @@ E: No packages found"
        eval `apt-config shell ARCH APT::Architecture`
        echo "$VIRTUAL" | sed -e "s/:$ARCH//" -e 's/:all//' > $COMPAREFILE
        aptcache show $PACKAGE 2>&1 | diff $COMPAREFILE - && msgpass || msgfail
+       rm $COMPAREFILE
 }
 
 testnopackage() {