From: Stephen Champion Date: Fri, 12 Sep 2014 00:03:01 +0000 (-0700) Subject: LU-5610 tests: Handle quoted module options X-Git-Tag: 2.6.53~54 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=d1d02bc96d3f5dad3478bcc1ee26c9f2832a952d LU-5610 tests: Handle quoted module options When test-framework.sh translates module options to environment variables for remote nodes, quotes sould be escaped to the subshell. Signed-off-by: Stephen Champion Change-Id: I937cc28b96b54ea75082c7d8789c762b4db16c5f Reviewed-on: http://review.whamcloud.com/11887 Tested-by: Jenkins Reviewed-by: Jian Yu Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index db1990e..8028991 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2835,7 +2835,7 @@ get_env_vars() { local facet for var in ${!MODOPTS_*}; do - value=${!var} + value=${!var//\"/\\\"} echo -n " ${var}=\"$value\"" done