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 Sep 9, 2020
1 parent 87c8d36 commit ec36551
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 ec36551

Please sign in to comment.