From: Ian Jackson Subject: [OSSTEST PATCH 01/10] Flight restriction: Move $maxflight to Osstest::Executive Date: Thu, 23 Jul 2015 19:19:15 +0100 Message-ID: <1437675564-16602-2-git-send-email-ian.jackson@eu.citrix.com> References: <1437675564-16602-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZIL6H-0007tA-Kn for xen-devel@lists.xenproject.org; Thu, 23 Jul 2015 18:20:09 +0000 In-Reply-To: <1437675564-16602-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org We are going to move the interpretation of --max-flight into Osstest::Executive. Start this by making $maxflight shared between Executive and the main program. Later, we will make it no longer exported. There are a number of places in Executive where a `my' variable $maxflight shadows the newly moved global. These will be got rid of later, too. No functional change. Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 3 +++ sg-report-flight | 2 -- sg-report-host-history | 1 - sg-report-job-history | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index ecd38c3..ec41ca1 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -46,6 +46,7 @@ BEGIN { @ISA = qw(Exporter); @EXPORT = qw(get_harness_rev grabrepolock_reexec findtask @all_lock_tables + $maxflight report_run_getinfo report_altcolour report_blessingscond report_find_push_age_info tcpconnect_queuedaemon plan_search @@ -193,6 +194,8 @@ sub opendb ($) { #---------- history reporting ---------- +our $maxflight; + our $green= '#008800'; our $red= '#ff8888'; our $yellow= '#ffff00'; diff --git a/sg-report-flight b/sg-report-flight index e6ca38c..018e8e2 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -45,8 +45,6 @@ our (@includebeginfiles,@includefiles); open DEBUG, ">/dev/null"; open MRO, ">/dev/null"; -our $maxflight; - while (@ARGV && $ARGV[0] =~ m/^-/) { $_= shift @ARGV; last if m/^--?$/; diff --git a/sg-report-host-history b/sg-report-host-history index 8e0e2aa..be51483 100755 --- a/sg-report-host-history +++ b/sg-report-host-history @@ -31,7 +31,6 @@ our $limit= 200; our $flightlimit; our $htmlout = "."; our @blessings; -our $maxflight; open DEBUG, ">/dev/null"; diff --git a/sg-report-job-history b/sg-report-job-history index e20c376..358c949 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -29,7 +29,6 @@ use Osstest::Executive; our (@blessings,@branches); our $limit= 100; our $htmlout; -our $maxflight; our $flight; our $job; -- 1.7.10.4