Test: Show error output from hydra-queue-runner on timeout

This commit is contained in:
Eelco Dolstra
2016-10-06 17:18:10 +02:00
parent 6a313c691b
commit f2724d088d
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}