Skip to contentSkip to conversation

mg-repro-setup: Cope with flights referencing other builds

PATCH New Ian Jackson 1 participant 3 messages Apr 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 mg-repro-setup: Cope with flights referencing other builds

We attempted to do this by trying to adjust build runvars only if they didn't have a `.'. But cs-adjust-flight runvar-build-set has special handling for <old-value>: it is always qualified with the flight.

So change the match to look for the current flight number.

---
 mg-repro-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mg-repro-setup +1 -1
index 0b3137a..4f2fe54 100755
@@ -199,7 +199,7 @@ if $skipcapture; then adjrunvar skip_testids "capture-logs*"; fi
 
 ./cs-adjust-flight $flight						\
 	copy-jobs $example_flight $job					\
-	runvar-build-set . '/buildjob$' '^[^\.]+$' $example_flight	\
+	runvar-build-set . '/buildjob$' "^$flight\\." $example_flight \
 	"${adjusts[@]}"
 
 progress "executing ..."
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 2/3 proxy config: Actually set https_proxy too

05406e5aaffb "proxy config: Set https_proxy too" was ineffective because in d22b80bb "proxy config: Factor out http_proxy_envsettings" the variable name $var was not substituted into the new supposedly-more-general shell rune, which consequently lacked the appropriate generality.

---
 Osstest/TestSupport.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/TestSupport.pm +1 -1
index d482e1d..19bdd23 100644
@@ -1911,7 +1911,7 @@ sub http_proxy_envsettings ($) {
     return unless $proxy;
     my @script;
     foreach my $var (qw(http_proxy https_proxy)) {
-        push @script, "http_proxy=$proxy", "export http_proxy";
+        push @script, "$var=$proxy", "export $var";
     }
     return (join '; ', @script).';';
 }
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

PATCH 3/3 mg-hosts: -l: print subtask info too

In reply to Ian Jackson
---
 mg-allocate | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
mg-allocate +9 -3
index 2dfbdb1..4f02ce5 100755
@@ -612,13 +612,19 @@ END
 			      qw(restype resname shareix));
 	    my $restype = $c->{restype};
 	    my $resname = $c->{resname};
+            my $prshare;
 	    if ($restype eq 'share-host') {
-		print "S/$resname";
+		$prshare = "S/$resname";
 	    } elsif ($restype eq 'host') {
-		print "$resname";
+		$prshare = "$resname";
 	    } elsif ($restype eq 'share-flight') {
-		print "F/$resname";
+		$prshare = "F/$resname";
 	    }
+            if ($c->{subtask}) {
+                printf "%-20s  %s", $prshare, $c->{subtask};
+            } else {
+                print $prshare;
+            }
 	    print "\n";
 	}
         db_retry_abort();
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel