Francois Gouget : testbot/RestoreVM: Avoid errors when restoring a VM with no snapshot.
Alexandre Julliard
julliard at winehq.org
Thu Dec 17 15:29:53 CST 2020
Module: tools
Branch: master
Commit: 6a4772a0e924252a82bc8e239d74f22b68bef475
URL: https://source.winehq.org/git/tools.git/?a=commit;h=6a4772a0e924252a82bc8e239d74f22b68bef475
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Thu Dec 17 11:53:02 2020 +0100
testbot/RestoreVM: Avoid errors when restoring a VM with no snapshot.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/scripts/RestoreVM | 1 +
1 file changed, 1 insertion(+)
diff --git a/testbot/scripts/RestoreVM b/testbot/scripts/RestoreVM
index a31f3ea..57e11c0 100755
--- a/testbot/scripts/RestoreVM
+++ b/testbot/scripts/RestoreVM
@@ -677,6 +677,7 @@ then
_dir="$1"
for snapxml in "$_dir"/*.xml
do
+ [ -f "$snapxml" ] || continue
name=`basename "$snapxml" .xml`
ctime=`sed -e 's~^.*<creationTime>\([0-9][0-9]*\)</creationTime>.*$~\1~' -e t -e d "$snapxml"`
echo "$ctime $name"
More information about the wine-cvs
mailing list