Whamcloud - gitweb
LU-2523 racer: don't clobber DURATION
authorJohn L. Hammond <john.hammond@intel.com>
Sat, 16 Mar 2013 15:15:22 +0000 (10:15 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Apr 2013 03:07:03 +0000 (23:07 -0400)
Don't clobber racer's DURATION if SLOW is not set to no.

Test-Parameters: envdefinitions=SLOW=yes \
 testlist=racer,racer,racer,racer,racer,racer

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I86c7f54e3fb7a06388d7083001a80b91d09ac27d
Reviewed-on: http://review.whamcloud.com/5741
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
lustre/tests/racer.sh

index 45cc384..a1694d5 100644 (file)
@@ -12,8 +12,11 @@ init_logging
 racer=$LUSTRE/tests/racer/racer.sh
 echo racer: $racer with $MDSCOUNT MDTs
 
-DURATION=${DURATION:-900}
-[ "$SLOW" = "no" ] && DURATION=300
+if [ "$SLOW" = "no" ]; then
+    DURATION=${DURATION:-300}
+else
+    DURATION=${DURATION:-900}
+fi
 MOUNT_2=${MOUNT_2:-"yes"}
 
 build_test_filter