qemu-iotests: Remove blkdebug.conf after tests
authorKevin Wolf <kwolf@redhat.com>
Thu, 27 Jul 2017 13:19:12 +0000 (15:19 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 1 Aug 2017 16:09:33 +0000 (18:09 +0200)
qemu-iotests 074 and 179 left a blkdebug.conf behind in the scratch
directory. Make sure to clean up after completing the tests.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/074
tests/qemu-iotests/179

index aba126cb694168fccbff1068ef8e700f49b4a61f..b17866bd34a108f73df16e766b3052bf29174595 100755 (executable)
@@ -32,6 +32,7 @@ _cleanup()
     echo "Cleanup"
     _cleanup_test_img
     rm "${TEST_IMG2}"
+    rm -f "$TEST_DIR/blkdebug.conf"
 }
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
index 7bc8db8fe0882e0e1ea9c325d3277a7564a143b0..115944a7532e81f95e16fd2c7e4e6975954f0587 100755 (executable)
@@ -30,6 +30,7 @@ status=1      # failure is the default!
 _cleanup()
 {
        _cleanup_test_img
+    rm -f "$TEST_DIR/blkdebug.conf"
 }
 trap "_cleanup; exit \$status" 0 1 2 3 15