summaryrefslogtreecommitdiffstats
path: root/test/functest/simulators/build_sim_image.sh
diff options
context:
space:
mode:
authorkrishna moorthy <krishna.moorthy6@wipro.com>2020-09-19 10:18:58 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-19 10:18:58 +0000
commit3014d7da4872982ea666a7bb11d8dc882bfa048c (patch)
tree9c879fe51390f92267416e9731791eec2db99409 /test/functest/simulators/build_sim_image.sh
parentedf98746a52408386efab26143778198b0efd3c5 (diff)
parentcc7372eefd2cc1ec0737f765a2600396f13e13ab (diff)
Merge "Fix osdf csit failure by fixing logging"
Diffstat (limited to 'test/functest/simulators/build_sim_image.sh')
-rwxr-xr-xtest/functest/simulators/build_sim_image.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functest/simulators/build_sim_image.sh b/test/functest/simulators/build_sim_image.sh
index c6bde2a..5d46ecb 100755
--- a/test/functest/simulators/build_sim_image.sh
+++ b/test/functest/simulators/build_sim_image.sh
@@ -18,7 +18,13 @@
# -------------------------------------------------------------------------
#
-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)
SIMULATORS_DIR=$FUNC_TEST_DIR/simulators