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>
#!/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