Skip to content

Commit

Permalink
fix failling test on Jenkins after ee1e270
Browse files Browse the repository at this point in the history
This test is failling build on 2.5, 2.6 and 3.0 since #4477
  • Loading branch information
antograssiot committed Sep 13, 2014
1 parent fb4b79d commit 0215ada
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Cake/Test/Case/Log/Engine/ConsoleLogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ public function testDefaultOutputAs() {
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;
Expand Down

0 comments on commit 0215ada

Please sign in to comment.