Whamcloud - gitweb
LU-5610 tests: Handle quoted module options 87/11887/2
authorStephen Champion <schamp@sgi.com>
Fri, 12 Sep 2014 00:03:01 +0000 (17:03 -0700)
committerStephen Champion <schamp@sgi.com>
Fri, 12 Sep 2014 00:03:01 +0000 (17:03 -0700)
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 <schamp@sgi.com>
Change-Id: I937cc28b96b54ea75082c7d8789c762b4db16c5f

lustre/tests/test-framework.sh

index f38f088..5be9620 100755 (executable)
@@ -2822,7 +2822,7 @@ get_env_vars() {
        local facet
 
        for var in ${!MODOPTS_*}; do
-               value=${!var}
+               value=${!var//\"/\\\"}
                echo -n " ${var}=\"$value\""
        done