[tools] testbot/RestoreVM: Explicitly deleting the old disks may not be necessary.
Francois Gouget
fgouget at codeweavers.com
Thu Dec 17 04:53:56 CST 2020
Normally virsh undefine --remove-all-storage handles it but it does not
follow the symbolic links. So tell rm not to complain if it finds no
file to delete.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/scripts/RestoreVM | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/scripts/RestoreVM b/testbot/scripts/RestoreVM
index a31f3ea71d..bf99e4978a 100755
--- a/testbot/scripts/RestoreVM
+++ b/testbot/scripts/RestoreVM
@@ -641,7 +641,7 @@ then
then
fatal_no_cleanup "could not remove the existing '$opt_vm' VM"
fi
- [ -z "$olddisks" ] || dry_run rm $olddisks
+ [ -z "$olddisks" ] || dry_run rm -f $olddisks
fi
--
2.20.1
More information about the wine-devel
mailing list