]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat test: bug fix for option --launcher
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 19 Oct 2016 07:35:40 +0000 (09:35 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 19 Oct 2016 07:35:40 +0000 (09:35 +0200)
src/test_module.py

index 9a8dc5d1e7b5c14b0e0102b76cf50eab6d94aa5f..a1c5bbd5cdce3baab56173b6d2f4e8f94fdfb0cc 100644 (file)
@@ -426,8 +426,9 @@ class Test:
                 " done ; echo $KERNEL_ROOT_DIR"
             else:
                 # New application
-                cmd = "echo -e 'import os\nprint os.environ[\"KERNEL_ROOT_DIR\""
-                "]' > tmpscript.py; %s shell tmpscript.py" % self.launcher
+                cmd = ("echo -e 'import os\nprint os.environ[\"KERNEL_" + 
+                       "ROOT_DIR\"]' > tmpscript.py; %s shell" + 
+                       " tmpscript.py") % self.launcher
             root_dir = subprocess.Popen(cmd,
                             stdout=subprocess.PIPE,
                             shell=True,