Francois Gouget : testbot: Add some section headers to the scripts.

Alexandre Julliard julliard at winehq.org
Wed Jun 13 14:00:26 CDT 2018


Module: tools
Branch: master
Commit: f8ab01fc59d28c5f208588a387166d73307f203a
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=f8ab01fc59d28c5f208588a387166d73307f203a

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Jun 13 11:45:45 2018 +0200

testbot: Add some section headers to the scripts.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/Janitor.pl         |  8 ++++++++
 testbot/bin/WineRunBuild.pl    |  4 ++++
 testbot/bin/WineRunReconfig.pl |  4 ++++
 testbot/bin/WineRunTask.pl     |  9 +++++++++
 testbot/bin/WineSendLog.pl     | 10 ++++++++++
 5 files changed, 35 insertions(+)

diff --git a/testbot/bin/Janitor.pl b/testbot/bin/Janitor.pl
index f7a6e33..9fb38ef 100755
--- a/testbot/bin/Janitor.pl
+++ b/testbot/bin/Janitor.pl
@@ -53,6 +53,11 @@ use WineTestBot::Tasks;
 use WineTestBot::Users;
 use WineTestBot::VMs;
 
+
+#
+# Logging and error handling helpers
+#
+
 my $LogOnly;
 sub Trace(@)
 {
@@ -67,6 +72,9 @@ sub Error(@)
 }
 
 
+#
+# Setup and command line processing
+#
 
 $ENV{PATH} = "/usr/bin:/bin";
 delete $ENV{ENV};
diff --git a/testbot/bin/WineRunBuild.pl b/testbot/bin/WineRunBuild.pl
index 61deb50..31decc1 100755
--- a/testbot/bin/WineRunBuild.pl
+++ b/testbot/bin/WineRunBuild.pl
@@ -49,6 +49,10 @@ use WineTestBot::Log;
 use WineTestBot::Engine::Notify;
 
 
+#
+# Logging and error handling helpers
+#
+
 my $Debug;
 sub Debug(@)
 {
diff --git a/testbot/bin/WineRunReconfig.pl b/testbot/bin/WineRunReconfig.pl
index 713712c..99b73da 100755
--- a/testbot/bin/WineRunReconfig.pl
+++ b/testbot/bin/WineRunReconfig.pl
@@ -48,6 +48,10 @@ use WineTestBot::Log;
 use WineTestBot::Engine::Notify;
 
 
+#
+# Logging and error handling helpers
+#
+
 my $Debug;
 sub Debug(@)
 {
diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index d757417..3290b0b 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -47,6 +47,10 @@ use WineTestBot::Log;
 use WineTestBot::Engine::Notify;
 
 
+#
+# Logging and error handling helpers
+#
+
 my $Debug;
 sub Debug(@)
 {
@@ -60,6 +64,11 @@ sub Error(@)
   LogMsg @_;
 }
 
+
+#
+# Task helpers
+#
+
 sub TakeScreenshot($$)
 {
   my ($VM, $FullScreenshotFileName) = @_;
diff --git a/testbot/bin/WineSendLog.pl b/testbot/bin/WineSendLog.pl
index 2a89427..e03395a 100755
--- a/testbot/bin/WineSendLog.pl
+++ b/testbot/bin/WineSendLog.pl
@@ -501,6 +501,11 @@ EOF
   }
 }
 
+
+#
+# Setup and command line processing
+#
+
 $ENV{PATH} = "/usr/bin:/bin";
 delete $ENV{ENV};
 
@@ -528,6 +533,11 @@ if (! defined($Job))
   exit(1);
 }
 
+
+#
+# Analyze the log and notify the developer
+#
+
 SendLog($Job);
 
 LogMsg "Log for job $JobId sent\n";




More information about the wine-cvs mailing list