Module: tools Branch: master Commit: ddf7c8a5987f858d9a25a6b8a803d73ac806f109 URL: https://gitlab.winehq.org/winehq/tools/-/commit/ddf7c8a5987f858d9a25a6b8a803...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Aug 25 11:15:58 2022 +0200
testbot/RestoreVM: When renaming a VM, warn if a disk was not renamed.
It means the name of that disk is not specific to the VM and may thus end up being shared with the original VM.
---
testbot/scripts/RestoreVM | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/testbot/scripts/RestoreVM b/testbot/scripts/RestoreVM index 29f5f43d..b020211a 100755 --- a/testbot/scripts/RestoreVM +++ b/testbot/scripts/RestoreVM @@ -502,6 +502,9 @@ else dst_target=`echo "$src_target" | sed -e "s/$vm/$opt_vm/g"` rm "$src_disk" ln -s "$dst_target" "$dst_disk" || failed=1 + elif [ "$src_disk" = "$dst_disk" ] + then + warning "not renaming '$src_disk'" else mv "$src_disk" "$dst_disk" || failed=1 fi