Remove files for testing loop devices when using the helper.
Signed-off-by: David Sterba <dsterba@suse.com>
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
done
for i in `seq $nloopdevs`; do
truncate -s0 $loopdev_prefix$i
+ rm -- "$loopdev_prefix$i"
done
run_check $SUDO_HELPER losetup --all
}