Francois Gouget : testbot: Add a history Record when the Engine starts or stops.
Module: tools Branch: master Commit: 98779a2195f8f0a458205e747ec20fb70f55f7fe URL: https://source.winehq.org/git/tools.git/?a=commit;h=98779a2195f8f0a458205e74... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Fri Dec 22 01:43:50 2017 +0100 testbot: Add a history Record when the Engine starts or stops. 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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/bin/Engine.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testbot/bin/Engine.pl b/testbot/bin/Engine.pl index 36a18ad..827879c 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;
participants (1)
-
Alexandre Julliard