]> xenbits.xensource.com Git - osstest.git/commitdiff
Flight restriction: Update sg-report-flight and sg-report-job-history
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 23 Jul 2015 16:57:07 +0000 (17:57 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 28 Jul 2015 14:30:21 +0000 (15:30 +0100)
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 <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sg-report-flight
sg-report-job-history

index 018e8e2fb771ff1d37f7271e8225b116e044db2d..bdfbfb65b9fe234122cf35aa505ca065fc1469b8 100755 (executable)
@@ -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) {
index 358c9498bb7a36d0cc4e04fe366a4201c1d53c5b..ec2776bf2126cb724474d57c9da4bef1522f4b9f 100755 (executable)
@@ -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?=(.*)$/) {