Whamcloud - gitweb
b=22581 LOADS env var in ncli.sh should allow overwrite
authorElena Gryaznova <grev@sun.com>
Tue, 11 May 2010 10:10:11 +0000 (14:10 +0400)
committerjohann <johann@granier.local>
Tue, 11 May 2010 11:02:01 +0000 (13:02 +0200)
i=Minh.Diep

lustre/tests/cfg/ncli.sh

index 2bd0618..2249dd1 100644 (file)
@@ -15,5 +15,9 @@ init_clients_lists
 # default boulder cluster iozone location
 export PATH=/opt/iozone/bin:$PATH
 SHARED_DIRECTORY=${SHARED_DIRECTORY:-""}       # bug 17839 comment 65
-LOADS="dd tar dbench iozone"
+LOADS=${LOADS:-"dd tar dbench iozone"}
+for i in $LOADS; do
+    [ -f $LUSTRE/tests/run_${i}.sh ] || \
+        error "incorrect load: $i"
+done
 CLIENT_LOADS=($LOADS)