[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 02/33] Executive: cs-job-create: Check that OSSTEST_FLIGHT is not set
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.Jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- 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@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |