forked from lix-project/hydra
tests: evalSucceeds: don't print stdout/stderr unless it fails
This commit is contained in:
parent
a5b8221a43
commit
40e556aee5
|
@ -21,10 +21,12 @@ sub evalSucceeds {
|
||||||
my ($jobset) = @_;
|
my ($jobset) = @_;
|
||||||
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-eval-jobset", $jobset->project->name, $jobset->name));
|
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-eval-jobset", $jobset->project->name, $jobset->name));
|
||||||
$jobset->discard_changes; # refresh from DB
|
$jobset->discard_changes; # refresh from DB
|
||||||
chomp $stdout; chomp $stderr;
|
if ($res) {
|
||||||
print STDERR "Evaluation errors for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg;
|
chomp $stdout; chomp $stderr;
|
||||||
print STDERR "STDOUT: $stdout\n" if $stdout ne "";
|
print STDERR "Evaluation errors for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg;
|
||||||
print STDERR "STDERR: $stderr\n" if $stderr ne "";
|
print STDERR "STDOUT: $stdout\n" if $stdout ne "";
|
||||||
|
print STDERR "STDERR: $stderr\n" if $stderr ne "";
|
||||||
|
}
|
||||||
return !$res;
|
return !$res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue