]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
cs-bisection-step: check old stash still exists
authorIan Jackson <iwj@woking.cam.xci-test.com>
Wed, 31 Oct 2012 11:59:46 +0000 (11:59 +0000)
committerIan Jackson <iwj@woking.cam.xci-test.com>
Wed, 31 Oct 2012 11:59:46 +0000 (11:59 +0000)
cs-bisection-step

index 78e905526f711dd49d1a093483fce5d309cae2de..750dcf52348cc11298a81e93bb5b376c3c8b3828 100755 (executable)
@@ -1039,8 +1039,13 @@ END
 END
 
         if ($reusejob) {
-            $usejob= "$reusejob->{flight}.$reusejob->{job}";
-            print STDERR "Can reuse $recipe $usejob.\n";
+           my $stashcheck = "$c{Stash}/$reusejob->{flight}/$reusejob->{job}";
+           if (stat $stashcheck) {
+               $usejob= "$reusejob->{flight}.$reusejob->{job}";
+               print STDERR "Can reuse $recipe $usejob.\n";
+           } else {
+               print STDERR "Can NOT reuse $recipe $usejob: $stashcheck: $!\n";
+           }
         }
     }