summaryrefslogtreecommitdiff
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 04:30:09 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 04:30:09 +0000
commitf76acb2d9d421ff705be6fd2713b8cc2c007e1df (patch)
tree9fe17e06724737f1a6579cf1a889a1222885412f /scripts/run-tests.sh
parenta765e882ebf89969e81335a6df4fddb23d27095f (diff)
downloadbrdo-f76acb2d9d421ff705be6fd2713b8cc2c007e1df.tar.gz
brdo-f76acb2d9d421ff705be6fd2713b8cc2c007e1df.tar.bz2
#282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif.
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 785ce3ce4..3266db3ad 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -212,7 +212,7 @@ function simpletest_script_parse_args() {
simpletest_script_print_error("--concurrency must be a strictly positive integer.");
exit;
}
- else if ($args['concurrency'] > 1 && !function_exists('pcntl_fork')) {
+ elseif ($args['concurrency'] > 1 && !function_exists('pcntl_fork')) {
simpletest_script_print_error("Parallel test execution requires the Process Control extension to be compiled in PHP. Please see http://php.net/manual/en/intro.pcntl.php for more information.");
exit;
}
@@ -386,7 +386,7 @@ function simpletest_script_get_test_list() {
}
}
}
- else if ($args['file']) {
+ elseif ($args['file']) {
$files = array();
foreach ($args['test_names'] as $file) {
$files[realpath($file)] = 1;