From 5ff15ead51c55f16308ad55fe46f5f2643b73314 Mon Sep 17 00:00:00 2001
From: earplov <arpad.lovassy@ericsson.com>
Date: Tue, 4 Apr 2017 09:17:24 +0200
Subject: [PATCH] fix script to work in any directory

Signed-off-by: earplov <arpad.lovassy@ericsson.com>
---
 .../TITAN_Executor_API_test/build_and_run_test.sh              | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh b/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
index 7eeb6e856..94b3f4993 100755
--- a/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
+++ b/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
@@ -80,7 +80,8 @@ file_exist ${JUNIT_FULL}
 file_exist ${HAMCREST_FULL}
 
 # run test (and build its dependencies if needed)
-BASEDIR=${0%/*}
+BASEDIR=$(dirname $0)
+echo BASEDIR: $BASEDIR
 ant \
 -f $BASEDIR/build.xml \
 -Djunit.full=${JUNIT_FULL} \
-- 
GitLab