Salome HOME
ménage
[modules/shaper.git] / test.sh
diff --git a/test.sh b/test.sh
index 3e31a55165b9d5ead1d0dfb6734d1faff876f888..7faf456b873ec3f33bcbb5ba2aafa9d7ed94797d 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -5,6 +5,15 @@ source env.sh
 mkdir -p ${BUILD_DIR}
 cd ${BUILD_DIR}
 
+export DISPLAY="localhost:0.0"
+
+# check for __init__.py in the SHAPER's Python scripts directory
+# for correct parsing PYTHONPATH and use the actual version of SHAPER
+# instead of distributed with SALOME
+if [[ ! -f ${SHAPER_PYTHON_SCRIPTS_DIR}/salome/__init__.py ]]; then
+  touch ${SHAPER_PYTHON_SCRIPTS_DIR}/salome/__init__.py
+fi
+
 if [[ $# > 0 ]]; then
   ctest --no-compress-output -T Test "$@" -R $1
 else