fix assignment in evalSucceeds (always returned 3, therefore evalSucceeds always succeeded

This commit is contained in:
Rob Vermaas 2011-12-01 08:31:07 -05:00
parent f6968d7d5b
commit ae26e6db2a

View file

@ -59,7 +59,7 @@ sub createJobsetWithOneInput {
sub evalSucceeds {
my ($jobset) = @_;
my $res = captureStdoutStderr(60, ("../src/script/hydra-evaluator", $jobset->project->name, $jobset->name));
my ($res) = captureStdoutStderr(60, ("../src/script/hydra-evaluator", $jobset->project->name, $jobset->name));
print STDERR "Evaluation errors for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg;
return $res;
}