]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
wip reorg fixups
authorIan Jackson <iwj@woking.cam.xci-test.com>
Tue, 16 Oct 2012 18:19:15 +0000 (19:19 +0100)
committerIan Jackson <iwj@woking.cam.xci-test.com>
Tue, 16 Oct 2012 18:19:15 +0000 (19:19 +0100)
Osstest/JobDB/Standalone.pm
Osstest/TestSupport.pm

index ea6b4f395c6e9fb295ed8c4d675ea27583c887de..e1d473efe72eecef7710953636a57a2f2aa88ec5 100644 (file)
@@ -64,6 +64,11 @@ sub job_ensure_started ($) { }
 
 sub host_check_allocated ($$) { #method
     my ($jd, $ho) = @_;
+
+    if ($ENV{'OSSTEST_HOST_REUSE'}) {
+       logm("OSSTEST_HOST_REUSE");
+       $ho->{SharedReady}= 1;
+    }
 }
 
 sub jobdb_postfork ($) { }
index ee69bab1f52b0a5dc27323be3ea11c886f198c12..e704cffaf98a5da7a8d06c19c74e62fca25c3f15 100644 (file)
@@ -93,7 +93,8 @@ sub tsreadconfig () {
 
     $flight= $mjobdb->current_flight();
     $job=    $ENV{'OSSTEST_JOB'};
-    die unless defined $flight and defined $job;
+    die "OSSTEST_FLIGHT and/or _JOB missing"
+       unless defined $flight and defined $job;
 
     my $now= time;  defined $now or die $!;