From 70a25bc86ba3eaac05db18d2a99baa16d3796cd3 Mon Sep 17 00:00:00 2001
From: nathan <nathan>
Date: Thu, 26 Apr 2007 18:07:07 +0000
Subject: [PATCH] Report which tests were run and the total time taken

---
 lustre/tests/acceptance-small.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh
index 39dcbff698..e00ab89fc6 100755
--- a/lustre/tests/acceptance-small.sh
+++ b/lustre/tests/acceptance-small.sh
@@ -28,6 +28,9 @@ fi
 LIBLUSTRE=${LIBLUSTRE:-../liblustre}
 LIBLUSTRETESTS=${LIBLUSTRETESTS:-$LIBLUSTRE/tests}
 
+STARTTIME=`date +%s`
+RANTEST=""
+
 LUSTRE=${LUSTRE:-`dirname $0`/..}
 . $LUSTRE/tests/test-framework.sh
 init_test_env $@
@@ -43,6 +46,7 @@ setup_if_needed() {
 
 title() {
     echo "-----============= acceptance-small: "$*" ============-----"
+    RANTEST=${RANTEST}$*", "
 }
 
 for NAME in $CONFIGS; do
@@ -247,7 +251,10 @@ if [ "$SANITY_QUOTA" != "no" ]; then
         sh sanity-quota.sh
 fi
 
-title FINISHED
 
 RC=$?
+title FINISHED
+echo "Finished at `date` in $((`date +%s` - $STARTTIME))s"
+echo "Tests ran: $RANTEST"
+
 echo "$0: completed with rc $RC" && exit $RC
-- 
GitLab