]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix problems with running PARAVIS tests
authorvsr <vsr@opencascade.com>
Tue, 6 Aug 2013 08:37:06 +0000 (08:37 +0000)
committervsr <vsr@opencascade.com>
Tue, 6 Aug 2013 08:37:06 +0000 (08:37 +0000)
test/VisuPrs/Util/paravistest.py
test/VisuPrs/Util/paravistesthelper.py

index 8c7f89a922cd7e89511f3718793f7301baa3be7b..82733ff05bb69a8dbccf381241b10f7565f2b8fc 100755 (executable)
@@ -81,7 +81,9 @@ class SalomeSession(object):
         #sys.argv += ["--portkill=" + port]
         sys.argv += ["--show-desktop=1"]
         sys.argv += ["--splash=0"]
-        sys.argv += ["--modules=MED,VISU,PARAVIS"]
+        sys.argv += ["--modules=MED,PARAVIS"]
+        sys.argv += ["--standalone=study"]
+        sys.argv += ["--embedded=SalomeAppEngine,cppContainer,registry,moduleCatalog"]
         clt, d = runSalome.main()
         port = d['port']
         self.port = port
@@ -193,13 +195,3 @@ def setShaded(view, shading):
 # Run Salome
 salome_session = SalomeSession()
 salome.salome_init()
-
-# Create new study
-print "Creating new study...",
-aStudy = salome.myStudyManager.NewStudy("Study1")
-if aStudy is None:
-    raise RuntimeError("FAILED")
-else:
-    print "OK"
-
-salome.myStudy = aStudy
index 67611a4b66db282cc153a8e3bb256fb6b4425eb5..5b008981d1ef38379d682acc8340b43315ff763d 100644 (file)
@@ -1,9 +1,16 @@
 import searchFreePort
 import subprocess
-import sys
+import sys, os
 import signal
 import killSalomeWithPort
 
+## TEMP >>> ###
+if not os.getenv("OMNIORB_USER_PATH"):
+    os.environ["OMNIORB_USER_PATH"] = os.path.realpath(os.path.expanduser('~'))
+    pass
+## <<< TEMP ###
+
+
 args = {}
 searchFreePort.searchFreePort(args)
 port = args['port']