[PATCH 1/3] testbot: Add a history Record when the Engine starts or stops.
Francois Gouget
fgouget at codeweavers.com
Thu Dec 21 18:43:50 CST 2017
A missing stop record will show that the TestBot Engine crashed (or was
stopped abruptly).
The gap between the stop and start records will also allow identifying
the downtime.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/bin/Engine.pl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl
index 36a18ade..827879cf 100755
--- a/testbot/bin/Engine.pl
+++ b/testbot/bin/Engine.pl
@@ -749,6 +749,7 @@ sub main()
LogMsg "Capping MaxRevertsWhileRunningVMs to MaxRevertingVMs ($MaxRevertsWhileRunningVMs)\n";
}
$MaxVMsWhenIdle = $MaxActiveVMs if (!defined $MaxVMsWhenIdle);
+ SaveRecord('engine', 'start');
Cleanup(1);
# Check for patches that arrived while the server was off.
@@ -871,6 +872,7 @@ sub main()
}
}
}
+ SaveRecord('engine', 'stop');
LogMsg "Normal WineTestBot Engine shutdown\n";
return 0;
--
2.15.1
More information about the wine-devel
mailing list