fix failling test on Jenkins after ee1e270

This test is failling build on 2.5, 2.6 and 3.0 since #4477
This commit is contained in:
antograssiot 2014-09-13 08:19:40 +02:00
parent fb4b79d292
commit 0215ada9dd

View file

@ -139,7 +139,10 @@ class ConsoleLogTest extends CakeTestCase {
TestCakeLog::config('test_console_log', array(
'engine' => 'TestConsole',
));
if (DS === '\\' && !(bool)env('ANSICON')) {
if (
(DS === '\\' && !(bool)env('ANSICON')) ||
(function_exists('posix_isatty') && !posix_isatty(null))
) {
$expected = ConsoleOutput::PLAIN;
} else {
$expected = ConsoleOutput::COLOR;