Bash trap handler is executed only after completition of
current command, so under big I/O load it can be executed
after test and cleanup phase finished.
Run I/O load in background overcome bash limitation.
Test-Parameters: clientcount=6 mdtcount=2 mdscount=2 osscount=2 austeroptions=-R failover=true iscsi=1 env=FAILOVER_PERIOD=180 testlist=recovery-double-scale env=SLOW=yes
Test-Parameters: clientcount=5 mdtcount=2 mdscount=2 osscount=2 austeroptions=-R failover=true iscsi=1 env=FAILOVER_PERIOD=180 env=DURATION=82800 testlist=recovery-mds-scale env=SLOW=yes
Test-Parameters: clientcount=5 mdtcount=2 mdscount=2 osscount=2 austeroptions=-R failover=true iscsi=1 env=DURATION=82800 testlist=recovery-random-scale env=SLOW=yes
Signed-off-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-2649
Reviewed-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I3c91cac4d3f9af9863e8f48ba8a6bae02190ccb4
Reviewed-on: https://review.whamcloud.com/45824
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
df $TESTDIR || true
dd bs=4k count=$BLKS status=noxfer if=/dev/zero of=$TESTDIR/dd-file \
- 1>$LOG
+ 1>$LOG & wait $!
if [ $? -eq 0 ]; then
echoerr "$(date +'%F %H:%M:%S'): dd succeeded"
cd $TMP
break
fi
- do_tar
+ do_tar & wait $!
RC=$?
PREV_ERRORS=$(grep "exit delayed from previous errors" $LOG) || true
if [ $RC -ne 0 -a "$ERRORS_OK" -a "$PREV_ERRORS" ]; then
if [ $RC -eq 0 ]; then
echoerr "$(date +'%F %H:%M:%S'): tar succeeded"
cd $TMP
- rm -rf $TESTDIR
+ rm -rf $TESTDIR & wait $!
echoerr "$(date +'%F %H:%M:%S'): tar run finished"
else
echoerr "$(date +'%F %H:%M:%S'): tar failed"