Skip to content

Commit

Permalink
exit 1 if tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Oct 2, 2012
1 parent 6ffd2cf commit 70f9e0c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/paraunit
Expand Up @@ -65,6 +65,11 @@ function runTestSets($all_tests, $num_procs)
} }
echo "Time: $n_secs seconds\n\n"; echo "Time: $n_secs seconds\n\n";
echo "Tests: $n_tests, Assertions: $n_assertions, Errors: $n_errors\n\n"; echo "Tests: $n_tests, Assertions: $n_assertions, Errors: $n_errors\n\n";
if ($n_errors > 0) {
exit(1);
} else {
exit(0);
}
} }


function collectStreamOutput($active_pipes, &$outputs) function collectStreamOutput($active_pipes, &$outputs)
Expand Down Expand Up @@ -186,6 +191,17 @@ function getProcessForTest($test)
} }


$PHPUNIT = dirname(__FILE__).'/../../../bin/phpunit'; $PHPUNIT = dirname(__FILE__).'/../../../bin/phpunit';
$WIN_UNAMES = array(
'MINGW32_NT-6.0',
'UWIN-W7',
'WIN32',
'WINNT',
'Windows',
'Windows NT'
);

$IS_WIN = in_array(php_uname('s'), $WIN_UNAMES);



function main($argv) function main($argv)
{ {
Expand Down

0 comments on commit 70f9e0c

Please sign in to comment.