From: Elena Gryaznova Date: Wed, 8 Dec 2021 11:19:44 +0000 (+0300) Subject: LU-15342 tests: escape "|" X-Git-Tag: 2.14.57~85 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=25606a2ce19e94c13694d46c3f15e9a10df40a91;hp=dc015fc0b51b95151366b0355cfc90b068d98b01 LU-15342 tests: escape "|" escape "|" on want="FULL|IDLE" to protect interpretation by shell: sh: IDLE: command not found Fixes: af666bef05 ("LU-12857 tests: allow clients to be IDLE after recovery") Test-Parameters: trivial Signed-off-by: Elena Gryaznova Change-Id: I2f885ea225ba43537f37b8dad1c2e0cd8f652a79 Reviewed-on: https://review.whamcloud.com/45788 Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: Vladimir Saveliev Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/recovery-mds-scale.sh b/lustre/tests/recovery-mds-scale.sh index cc78f5f..cf1325b 100644 --- a/lustre/tests/recovery-mds-scale.sh +++ b/lustre/tests/recovery-mds-scale.sh @@ -155,7 +155,7 @@ failover_target() { exit 7 fi - want="FULL|IDLE" + local want="FULL\|IDLE" log "Checking clients are in $want state before next failover" wait_clients_import_state $NODES_TO_USE $serverfacet "$want" || echo "Client import not $want, please consider to increase SERVER_FAILOVER_PERIOD=$SERVER_FAILOVER_PERIOD!"