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 <ian.jack...@eu.citrix.com> Tested-by: Ian Jackson <ian.jack...@eu.citrix.com> --- 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 @@ # <dst-flight>: # <flight> # new:<intended-blessing> +# 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel