Created
March 31, 2011 13:32
-
-
Save chrisns/896341 to your computer and use it in GitHub Desktop.
drupal simpletest stuffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git run-tests.sh run-tests.sh | |
index bcc5095..e0022fd 100755 | |
--- run-tests.sh | |
+++ run-tests.sh | |
@@ -387,7 +387,11 @@ function simpletest_script_command($concurrency, $test_id, $tests) { | |
$command .= ' --color'; | |
} | |
$command .= " --php " . escapeshellarg($php) . " --concurrency $concurrency --test-id $test_id --execute-batch $tests"; | |
- passthru($command); | |
+ passthru($command, $output); | |
+ if ($output == 255) { | |
+ echo "Caught a fatal error, sorry I have no more information for you than that."; | |
+ exit(1); | |
+ } | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment