I should test first

This commit is contained in:
Eelco Dolstra 2012-04-30 17:57:13 +02:00
parent dcc570f454
commit 854513be8e
3 changed files with 5 additions and 3 deletions

View file

@ -80,7 +80,7 @@ rec {
done
''; # */
LOGNAME="$USER";
LOGNAME = "foo";
meta = {
description = "Build of Hydra on ${system}";

View file

@ -368,7 +368,7 @@ sub doBuild {
$stopTime = time();
if ($res != 0) {
if ($thisBuildFailed && $res == 100) { $buildStatus = 1; }
if ($thisBuildFailed && $res == 100 << 8) { $buildStatus = 1; }
elsif ($someBuildFailed) { $buildStatus = 2; }
else { $buildStatus = 3; }
}

View file

@ -71,7 +71,9 @@ sub evalSucceeds {
sub runBuild {
my ($build) = @_;
return captureStdoutStderr(60, ("../src/script/hydra-build", $build->id));
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("../src/script/hydra-build", $build->id));
print "STDERR: $stderr" if $res;
return ($res, $stdout, $stderr);
}
sub updateRepository {