Skip to content

Commit

Permalink
Use exec in tests to get it tested
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Jan 24, 2020
1 parent 3364016 commit 37fbdc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli/StopOnFailureCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public function parallelProcessesGetStoppedIfStopOnFailIsSet(CliGuy $I)
/** @var \Robo\Task\Base\ParallelExec $parallel */
$parallel = $I->taskParallelExec();
$parallel->stopOnFail(true);
$parallel->process($I->taskExec(sprintf('touch %s && false', escapeshellarg($filenameOk))));
$parallel->process($I->taskExec(sprintf('sleep 3 && touch %s', escapeshellarg($filenameKo))));
$parallel->process($I->taskExec(sprintf('exec touch %s && false', escapeshellarg($filenameOk))));
$parallel->process($I->taskExec(sprintf('exec sleep 3 && touch %s', escapeshellarg($filenameKo))));
$parallel->run();

$I->seeFileFound($filenameOk);
Expand Down

0 comments on commit 37fbdc7

Please sign in to comment.