Salome HOME
MPV: for automatic test scenarios:
authormpv <mpv@opencascade.com>
Tue, 28 Jun 2005 10:57:19 +0000 (10:57 +0000)
committermpv <mpv@opencascade.com>
Tue, 28 Jun 2005 10:57:19 +0000 (10:57 +0000)
just return free port in case "-nothing" option

bin/runSalome

index ff478c1a0eb5203420adfe35f879faeea8969d4f..178359e35ccc0caff4e5f45e8acf603091129ef6 100755 (executable)
@@ -33,7 +33,9 @@ searchFreePort() {
 
 searchFreePort
 
-if [ $# -ne 0 ] ; then
+if [[ "$*" == "-nothing" ]]; then
+    echo "port:$NSPORT"
+elif [ $# -ne 0 ] ; then
     python -i ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $* 
 else
     python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py