Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/NoseTestEngine.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | foreach ($test_paths as $test_path) { | ||||
$futures[$test_path] = $future; | $futures[$test_path] = $future; | ||||
$tmpfiles[$test_path] = array( | $tmpfiles[$test_path] = array( | ||||
'xunit' => $xunit_tmp, | 'xunit' => $xunit_tmp, | ||||
'cover' => $cover_tmp, | 'cover' => $cover_tmp, | ||||
); | ); | ||||
} | } | ||||
$results = array(); | $results = array(); | ||||
$futures = id(new FutureIterator($futures)) | $futures = (new FutureIterator($futures)) | ||||
->limit(4); | ->limit(4); | ||||
foreach ($futures as $test_path => $future) { | foreach ($futures as $test_path => $future) { | ||||
try { | try { | ||||
list($stdout, $stderr) = $future->resolvex(); | list($stdout, $stderr) = $future->resolvex(); | ||||
} catch (CommandException $exc) { | } catch (CommandException $exc) { | ||||
if ($exc->getError() > 1) { | if ($exc->getError() > 1) { | ||||
// 'nose' returns 1 when tests are failing/broken. | // 'nose' returns 1 when tests are failing/broken. | ||||
throw $exc; | throw $exc; | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0