From: Ian Jackson Subject: [OSSTEST PATCH 02/24] cs-adjust-flight: Allow adjusting "this" flight Date: Fri, 13 Nov 2015 12:03:30 +0000 Message-ID: <1447416232-12699-3-git-send-email-ian.jackson@eu.citrix.com> References: <1447416232-12699-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZxD5R-0001Uf-1k for xen-devel@lists.xenproject.org; Fri, 13 Nov 2015 12:04:13 +0000 In-Reply-To: <1447416232-12699-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 Tested-by: Ian Jackson --- v17: Better documentation of running: flight status v14: New patch --- cs-adjust-flight | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cs-adjust-flight b/cs-adjust-flight index d70abf7..a72cd88 100755 --- a/cs-adjust-flight +++ b/cs-adjust-flight @@ -28,6 +28,8 @@ # : # # new: +# running: uses OSSTEST_FLIGHT (flight referred to +# must be blessed `running' or `constructing') # # options: # -v verbose - list changes to stderr @@ -395,6 +397,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