From: Ian Jackson Subject: [OSSTEST PATCH 04/10] Flight restriction: Update sg-report-flight and sg-report-job-history Date: Thu, 23 Jul 2015 19:19:18 +0100 Message-ID: <1437675564-16602-5-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZIL7N-0000O4-WC for xen-devel@lists.xenproject.org; Thu, 23 Jul 2015 18:21:18 +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 Use restrictflight_arg in both these functions. They still use $maxflight directly, passing it to report_blessingscond; that will change in a moment. No functional change. Signed-off-by: Ian Jackson --- sg-report-flight | 4 ++-- sg-report-job-history | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 018e8e2..bdfbfb6 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -65,8 +65,8 @@ while (@ARGV && $ARGV[0] =~ m/^-/) { push @includebeginfiles, $1; } elsif (m/^--include=(.*)$/) { push @includefiles, $1; - } elsif (m/^--max-flight=(\d+)$/) { - $maxflight= $1; + } elsif (restrictflight_arg($_)) { + # Handled by Executive } elsif (m/^--allow=(.*)$/) { my ($allowfile) = $1; if (!open A, '<', $allowfile) { diff --git a/sg-report-job-history b/sg-report-job-history index 358c949..ec2776b 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -41,8 +41,8 @@ while (@ARGV && $ARGV[0] =~ m/^-/) { $$1= $2; } elsif (m/^--(limit)\=([1-9]\d*)$/) { $$1= $2; - } elsif (m/^--max-flight\=([1-9]\d*)$/) { - $maxflight= $1; + } elsif (restrictflight_arg($_)) { + # Handled by Executive } elsif (m/^--html-dir=(.*)$/) { $htmlout= $1; } elsif (m/^--branches?=(.*)$/) { -- 1.7.10.4