Whamcloud - gitweb
LU-2523 tests: disable racer setstripe until fixed
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 14 Feb 2013 01:04:37 +0000 (17:04 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 7 Mar 2013 03:54:02 +0000 (22:54 -0500)
Disable the use of "lfs setstripe" in racer file_create.sh until
the LU-2523 and LU-2789 are fixed, so that racer can be added to
the "review" test workload instead of only in the "full" workload.

Test-Parameters: testlist=racer,racer,racer
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I8b0814ef7864efd817ff585f715183fbf73ebbe5
Reviewed-on: http://review.whamcloud.com/5424
Reviewed-by: John Hammond <johnlockwoodhammond@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/racer/file_create.sh

index 828e69c..7de46b6 100755 (executable)
@@ -4,13 +4,15 @@ DIR=$1
 MAX=$2
 MAX_MB=256
 
+# disable until LU-2523 and LU-2789 are fixed
+[ -z "$RACER_SETSTRIPE" ] && RACER_SETSTRIPE=false
 OSTCOUNT=${OSTCOUNT:-$(lfs df $DIR 2> /dev/null | grep -c OST)}
 
 while /bin/true ; do 
        file=$((RANDOM % MAX))
        SIZE=$((RANDOM * MAX_MB / 32))
        echo "file_create: FILE=$DIR/$file SIZE=$SIZE"
-       [ $OSTCOUNT -gt 0 ] &&
+       [ $OSTCOUNT -gt 0 ] && $RACER_SETSTRIPE &&
                lfs setstripe -c $((RANDOM % OSTCOUNT)) $DIR/$file 2> /dev/null
        dd if=/dev/zero of=$DIR/$file bs=1k count=$SIZE 2> /dev/null
 done