Skip to content

Commit

Permalink
Install stty required for tests on ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw authored and javiereguiluz committed Jun 21, 2021
1 parent adf3116 commit 944b320
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/Command/AddUserCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ class AddUserCommandTest extends KernelTestCase

protected function setUp(): void
{
exec('stty 2>&1', $output, $exitcode);
$isSttySupported = 0 === $exitcode;

if ('Windows' === \PHP_OS_FAMILY || !$isSttySupported) {
$this->markTestSkipped('`stty` is required to test this command.');
if ('Windows' === \PHP_OS_FAMILY) {
$this->markTestSkipped('Windows OS does not support testing this command.');
}
}

Expand Down

0 comments on commit 944b320

Please sign in to comment.