Francois Gouget : testbot: Add a history Record when the Engine starts or stops.
Alexandre Julliard
julliard at winehq.org
Fri Dec 22 08:49:36 CST 2017
Module: tools
Branch: master
Commit: 98779a2195f8f0a458205e747ec20fb70f55f7fe
URL: https://source.winehq.org/git/tools.git/?a=commit;h=98779a2195f8f0a458205e747ec20fb70f55f7fe
Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list