* eval-jobs -> hydra_eval_jobs.

This commit is contained in:
Eelco Dolstra
2009-03-09 15:16:11 +00:00
parent a74bfdf533
commit e87896e4b4
5 changed files with 16 additions and 20 deletions

View File

@ -329,7 +329,7 @@ sub checkJobSet {
$nixExprPath .= "/" . $jobset->nixexprpath;
(my $res, my $jobsXml, my $stderr) = captureStdoutStderr(
"eval-jobs", $nixExprPath, inputsToArgs($inputInfo));
"hydra_eval_jobs", $nixExprPath, inputsToArgs($inputInfo));
die "cannot evaluate the Nix expression containing the jobs:\n$stderr" unless $res;
my $jobs = XMLin($jobsXml,
@ -338,16 +338,18 @@ sub checkJobSet {
SuppressEmpty => '')
or die "cannot parse XML output";
# Store the errors messages for jobs that failed to evaluate.
foreach my $error (@{$jobs->{error}}) {
print "error at " . $error->{location} . ": " . $error->{msg} . "\n";
}
# Schedule each successfully evaluated job.
foreach my $job (@{$jobs->{job}}) {
print "considering job " . $job->{jobName} . "\n";
checkJob($project, $jobset, $inputInfo, $job);
}
# Store the errors messages for jobs that failed to evaluate.
my $msg = "";
foreach my $error (@{$jobs->{error}}) {
$msg .= "at `" . $error->{location} . "': " . $error->{msg} . "\n";
}
setJobsetError($jobset, $msg);
}