From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 11/26] cs-adjust-flight: Allow adjusting "this" flight Date: Fri, 25 Sep 2015 20:15:07 +0100 Message-ID: <1443208522-24905-3-git-send-email-ian.jackson@eu.citrix.com> References: <1443181028-22705-1-git-send-email-ian.jackson@eu.citrix.com> <1443208522-24905-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 1ZfYTX-0001dt-SC for xen-devel@lists.xenproject.org; Fri, 25 Sep 2015 19:16:07 +0000 In-Reply-To: <1443208522-24905-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: Robert Ho , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This allows cs-adjust-flight to be run by hand to adjust runvars, in a flight being used with hand-invocation of ./ts-* scripts. Signed-off-by: Ian Jackson --- v14: New patch --- cs-adjust-flight | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cs-adjust-flight b/cs-adjust-flight index a7b50f5..972d1d5 100755 --- a/cs-adjust-flight +++ b/cs-adjust-flight @@ -26,6 +26,7 @@ # : # # new: +# running: uses OSSTEST_FLIGHT (may be `constructing' too) # # options: # -v verbose - list changes to stderr @@ -375,6 +376,13 @@ sub main () { verbose_discard(); changes(); }); + } elsif ($dstflightspec =~ m/^running:$/) { + $dstflight = $ENV{OSSTEST_FLIGHT} // die; + db_retry($dstflight,[qw(constructing running)], + $dbh_tests, [qw(flights)], sub { + verbose_discard(); + changes(); + }); } elsif ($dstflightspec =~ m/^new:/) { my $intended = $'; #'; db_retry($dbh_tests, [qw(flights)], sub { -- 1.7.10.4