From 03fb34b6b46ebc54a98d3d0e264e60432e68bb8d Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 12 Sep 2017 18:17:51 +0200 Subject: [PATCH] btrfs-progs: tests: remove temporary loopdev files Remove files for testing loop devices when using the helper. Signed-off-by: David Sterba --- tests/common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/common b/tests/common index 08a25918..1c098e8e 100644 --- a/tests/common +++ b/tests/common @@ -551,7 +551,7 @@ prepare_loopdevs() done } -# detach loop devices and reset their size to 0, does not delete the files +# detach loop devices and reset their size to 0, delete the files afterwards cleanup_loopdevs() { for dev in ${loopdevs[@]}; do @@ -559,6 +559,7 @@ cleanup_loopdevs() done for i in `seq $nloopdevs`; do truncate -s0 $loopdev_prefix$i + rm -- "$loopdev_prefix$i" done run_check $SUDO_HELPER losetup --all }