summaryrefslogtreecommitdiff
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-24 15:48:56 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-24 15:48:56 +0000
commitb43010c5bdccb7b898aa1c3ca8f92f98d9e03c57 (patch)
tree98b09e081be4a1d8dd7e3204f4415ea2ea08e46b /scripts/run-tests.sh
parent9bc36524f2782336e75e45b928db5d23da747c26 (diff)
downloadbrdo-b43010c5bdccb7b898aa1c3ca8f92f98d9e03c57.tar.gz
brdo-b43010c5bdccb7b898aa1c3ca8f92f98d9e03c57.tar.bz2
#312847 by moshe weitzman: Fix end time reporting in run-tests.sh.
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 4418020b2..cd36aec36 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -444,6 +444,7 @@ function simpletest_script_reporter_init() {
}
echo "Test run started: " . format_date($_SERVER['REQUEST_TIME'], 'long') . "\n";
+ timer_start('run-tests');
echo "\n";
echo "Test summary:\n";
@@ -458,7 +459,8 @@ function simpletest_script_reporter_display_results() {
global $args, $test_id, $results_map;
echo "\n";
- echo "Test run ended: " . format_date($_SERVER['REQUEST_TIME'], 'long') . "\n";
+ $end = timer_stop('run-tests');
+ echo "Test run duration: " . format_interval($end['time'] / 1000);
echo "\n";
if ($args['verbose']) {