Whamcloud - gitweb
LU-5610 tests: Handle quoted module options 87/11887/3
authorStephen Champion <schamp@sgi.com>
Fri, 12 Sep 2014 00:03:01 +0000 (17:03 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 15 Sep 2014 16:56:19 +0000 (16:56 +0000)
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
Reviewed-on: http://review.whamcloud.com/11887
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh

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