Fixes
This commit is contained in:
parent
6418fde928
commit
21ba39e6ff
|
@ -76,6 +76,7 @@ abstract class BaseCommandExecutor implements CommandExecutor
|
|||
$this->lastOutput = array();
|
||||
|
||||
$command = call_user_func_array('sprintf', $args);
|
||||
$this->logger->logDebug($command);
|
||||
|
||||
if ($this->quiet) {
|
||||
$this->logger->log('Executing: ' . $command);
|
||||
|
@ -89,11 +90,6 @@ abstract class BaseCommandExecutor implements CommandExecutor
|
|||
);
|
||||
|
||||
$pipes = array();
|
||||
|
||||
if (defined('PHPCI_DEBUG_MODE')) {
|
||||
$this->logger->logDebug($command);
|
||||
}
|
||||
|
||||
$process = proc_open($command, $descriptorSpec, $pipes, $this->buildPath, null);
|
||||
|
||||
if (is_resource($process)) {
|
||||
|
|
|
@ -104,7 +104,9 @@ class BuildLogger implements LoggerAwareInterface
|
|||
*/
|
||||
public function logDebug($message)
|
||||
{
|
||||
$this->log("\033[0;33m" . $message . "\033[0m");
|
||||
if (defined('PHPCI_DEBUG_MODE') && PHPCI_DEBUG_MODE) {
|
||||
$this->log("\033[0;33m" . $message . "\033[0m");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -30,7 +30,6 @@ class Codeception implements ParserInterface
|
|||
{
|
||||
$this->phpci = $phpci;
|
||||
$this->resultsXml = $resultsXml;
|
||||
|
||||
$this->totalTests = 0;
|
||||
}
|
||||
|
||||
|
@ -71,7 +70,7 @@ class Codeception implements ParserInterface
|
|||
|
||||
if (isset($testcase->failure) || isset($testcase->error)) {
|
||||
$testresult['pass'] = false;
|
||||
$testresult['message'] = isset($testcase->failure) ? (string) $testcase->failure : (string) $testcase->error;
|
||||
$testresult['message'] = (string)$testcase->failure . (string)$testcase->error;
|
||||
} else {
|
||||
$testresult['pass'] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue