fix csit, cleanup dockerfile for osdf
[optf/osdf.git] / test / functest / scripts / start-simulators.sh
index 11767e0..66507d4 100755 (executable)
 
 # This script is in osdf/test/functest/scripts/
 
-SCRIPTDIR=$(dirname $(readlink -f $0))
+if [[ `uname` == "Darwin" ]]
+then
+  SCRIPTDIR=$(dirname $(greadlink -f $0))
+else
+  SCRIPTDIR=$(dirname $(readlink -f $0))
+fi
 FUNC_TEST_DIR=$(dirname $SCRIPTDIR)
 TEST_DIR=$(dirname $FUNC_TEST_DIR)
 OSDF_DIR=$(dirname $TEST_DIR)
@@ -40,9 +45,10 @@ SIMULATORS_DIR=$FUNC_TEST_DIR/simulators
     ln -s $SIMULATORS_DIR/simulated-config config
 
     XPID=$(ps -x | grep "python oof_dependencies_simulators.py" | grep -v grep | awk '{print $1}')
+    echo "simulator pid " $XPID
     if [ -z "$XPID" ]; then
       python oof_dependencies_simulators.py > simulator-logs 2>&1 &
-      sleep 5
+      sleep 10
     fi
 )