Fixed build error message to show if it contains quote

This commit is contained in:
Pauli Nieminen 2008-08-18 21:59:51 +00:00
parent c45fbb447b
commit d2b9902432
2 changed files with 7 additions and 3 deletions

View file

@ -21,5 +21,5 @@ export DISPLAY=:0.0
WEBDIR=$FULL_PATH/../htdocs
cd $FULL_PATH/../trunk
nice php -f ../autotester/run_unit_tests.php $WEBDIR
nice php -f $FULL_PATH/run_unit_tests.php $WEBDIR
#> $FULL_PATH/err.log

View file

@ -207,13 +207,17 @@ class Build {
}
if (strpos($this->error_msg,'error') !== false
|| strpos($this->error_msg,'ld returned'))
$this->status = self::S_ERROR;
$this->status = self::S_ERROR;
$this->error_msg = str_replace("'","\\'",$this->error_msg);
}
$this->time = time();
$this->svn_revision = $revision;
return $this->status == self::S_GOOD;
if ($this->status == self::S_GOOD)
return true;
$this->insert();
return false;
}
public function getTestName()