If OSSTEST_FLIGHT is set on entry to JobDB::Executive::flight_create, fail. This obviously represents some kind of mistake.
One effect is that standalone-generate-dump-flight-runvars won't fill an Executive database with test flights. Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> Acked-by: Ian Campbell <ian.campb...@citrix.com> --- Osstest/JobDB/Executive.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Osstest/JobDB/Executive.pm b/Osstest/JobDB/Executive.pm index cc52f57..6ba3d37 100644 --- a/Osstest/JobDB/Executive.pm +++ b/Osstest/JobDB/Executive.pm @@ -89,6 +89,8 @@ END sub flight_create ($$$) { #method my ($jd,$intended,$branch) = @_; + die "OSSTEST_FLIGHT set on entry to JobDB::Executive::flight_create\n" + if $ENV{'OSSTEST_FLIGHT'}; $dbh_tests->do(<<END, {}, $branch, $intended); INSERT INTO flights (flight, started, blessing, branch, intended) -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel