]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Add application environment for svn prepartion of the test base
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Fri, 18 Nov 2016 10:04:50 +0000 (11:04 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Fri, 18 Nov 2016 10:04:50 +0000 (11:04 +0100)
src/test_module.py

index 51ea543299734b215b98c776fe5c4e51b27db584..fe9d7d704b4f9db8dfdac510a4aaba11b7384272 100644 (file)
@@ -170,7 +170,13 @@ class Test:
             cmd = cmd % { 'user': user,
                          'base': testbase_base,
                          'dir': testbase_name }
-
+            
+            # Get the application environment
+            self.logger.write(_("Set the application environment\n"), 5)
+            env_appli = src.environment.SalomeEnviron(self.config,
+                                      src.environment.Environ(dict(os.environ)))
+            env_appli.set_application_env(self.logger)
+            
             self.logger.write("> %s\n" % cmd, 5)
             if src.architecture.is_windows():
                 # preexec_fn not supported on windows platform
@@ -185,7 +191,8 @@ class Test:
                                 shell=True,
                                 preexec_fn=set_signal,
                                 stdout=self.logger.logTxtFile,
-                                stderr=subprocess.PIPE)
+                                stderr=subprocess.PIPE,
+                                env=env_appli.environ.environ,)
 
             if res != 0:
                 raise src.SatException(_("Error: unable to get test base '%(nam"