mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 21:03:28 +00:00
Fixed build error message to show if it contains quote
This commit is contained in:
parent
c45fbb447b
commit
d2b9902432
@ -21,5 +21,5 @@ export DISPLAY=:0.0
|
|||||||
WEBDIR=$FULL_PATH/../htdocs
|
WEBDIR=$FULL_PATH/../htdocs
|
||||||
|
|
||||||
cd $FULL_PATH/../trunk
|
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
|
#> $FULL_PATH/err.log
|
||||||
|
@ -207,13 +207,17 @@ class Build {
|
|||||||
}
|
}
|
||||||
if (strpos($this->error_msg,'error') !== false
|
if (strpos($this->error_msg,'error') !== false
|
||||||
|| strpos($this->error_msg,'ld returned'))
|
|| 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->time = time();
|
||||||
$this->svn_revision = $revision;
|
$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()
|
public function getTestName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user