From c74be05495cd5b7489fdbb100cd7b6d15db32053 Mon Sep 17 00:00:00 2001 From: Keith Mannthey Date: Thu, 18 Jul 2013 18:57:11 -0700 Subject: [PATCH] LU-3582 test: Add run_test to Runtests There is no run_test in this script so add one so logging in Autotest will greatly improve. It seems some of the test is dependant so I did a very minimal change to get the better logging. Signed-off-by: Keith Mannthey Change-Id: I2e892a39a48eb4020ab699cce9b83708800ebf58 Reviewed-on: http://review.whamcloud.com/7014 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger --- lustre/tests/runtests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/runtests b/lustre/tests/runtests index f6b3cd2..c49eba7 100755 --- a/lustre/tests/runtests +++ b/lustre/tests/runtests @@ -24,7 +24,7 @@ RUNTESTS_SRC=${RUNTESTS_SRC:-"/etc /bin"} [ "$MKDIRMANY" ] || MKDIRMANY="createmany -d" check_and_setup_lustre - +test_1() { OSCTMP=`echo $MOUNT | tr "/" "."` USED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1` USED=`expr $USED + 16` # Some space for the status file @@ -126,6 +126,8 @@ NOWUSED=`df | awk "/$OSCTMP/ { print \\$3 }" | tail -n 1` if [ `expr $NOWUSED - $USED` -gt 1024 ]; then echo "Space not all freed: now ${NOWUSED}kB, was ${USED}kB." 1>&2 fi +} +run_test 1 "All Runtests" complete $SECONDS rm -f $FILES -- 1.8.3.1