Whamcloud - gitweb
LU-8903 tests: racer test_1 to drop all error messages 39/24139/4
authorChennaiah Palla <chennaiah.palla@seagate.com>
Mon, 5 Dec 2016 13:05:09 +0000 (18:35 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 31 Jan 2017 04:10:37 +0000 (04:10 +0000)
Filtered and dropped all Segmentation fault and Bus error
messages. Used "export LANG=C" to display messages are in
English instead of the local language.

Test-Parameters: trivial mdtcount=1 testlist=racer,racer

Seagate-bug-id: MRP-3009
Signed-off-by: Chennaiah Palla <chennaiah.palla@seagate.com>
Change-Id: Ibef083870634f4c8dd6b86e6aa91b5978f27c656
Reviewed-by: Ashish Purkar <ashish.purkar@seagate.com>
Reviewed-by: Elena V. Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Ujjwal Lanjewar <ujjwal.lanjewar@seagate.com>
Reviewed-on: https://review.whamcloud.com/24139
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/racer/file_exec.sh

index 9ec7b11..3a6df15 100755 (executable)
@@ -1,14 +1,18 @@
 #!/bin/bash
 trap 'kill $(jobs -p)' EXIT
 
+org_LANG=$LANG
+export LANG=C
+
 DIR=$1
 MAX=$2
 PROG=/bin/sleep
 
 while /bin/true ; do
-    file=$((RANDOM % MAX))
-    cp $PROG $DIR/$file > /dev/null 2>&1
-    $DIR/$file 0.$((RANDOM % 5 + 1)) 2> /dev/null
-    sleep $((RANDOM % 3))
-done
+       file=$((RANDOM % MAX))
+       cp -p $PROG $DIR/$file > /dev/null 2>&1
+       $DIR/$file 0.$((RANDOM % 5 + 1)) 2> /dev/null
+       sleep $((RANDOM % 3))
+done 2>&1 | egrep -v "Segmentation fault|Bus error"
 
+export LANG=$org_LANG