forked from lix-project/hydra
Test: Show error output from hydra-queue-runner on timeout
This commit is contained in:
parent
6a313c691b
commit
f2724d088d
|
@ -393,7 +393,7 @@ sub captureStdoutStderr {
|
|||
|
||||
if ($@) {
|
||||
die unless $@ eq "timeout\n"; # propagate unexpected errors
|
||||
return (-1, "", "timeout\n");
|
||||
return (-1, $stdout, ($stderr // "") . "timeout\n");
|
||||
} else {
|
||||
return ($?, $stdout, $stderr);
|
||||
}
|
||||
|
|
|
@ -72,6 +72,10 @@ sub evalSucceeds {
|
|||
sub runBuild {
|
||||
my ($build) = @_;
|
||||
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-queue-runner", "-vvvv", "--build-one", $build->id));
|
||||
if ($res) {
|
||||
print STDERR "Queue runner stdout: $stdout\n" if $stdout ne "";
|
||||
print STDERR "Queue runner stderr: $stderr\n" if $stderr ne "";
|
||||
}
|
||||
return !$res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue