summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Pilat <m.pilat@partner.samsung.com>2019-04-26 16:15:29 +0200
committerMateusz Pilat <m.pilat@partner.samsung.com>2019-04-26 16:17:31 +0200
commit979888ac9c7cbaf17f94298d41255751222a31b5 (patch)
tree0196220884207f15bf4a20b478beb5b053e63bdc
parentcb94aefb4ef22fdf435578e676823a6b9600cbb9 (diff)
Fix for Molecule images build-all.sh
ansible/test/images/docker/build-all.sh works only if executed under folder where script is located. Change-Id: Ic91656656788a48bdd12cb8003e875011a71cbe3 Issue-ID: OOM-1829 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com>
-rwxr-xr-xansible/test/images/docker/build-all.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/test/images/docker/build-all.sh b/ansible/test/images/docker/build-all.sh
index dd5db093..dcaaf82f 100755
--- a/ansible/test/images/docker/build-all.sh
+++ b/ansible/test/images/docker/build-all.sh
@@ -19,9 +19,9 @@
# COPYRIGHT NOTICE ENDS HERE
BUILD_SCRIPT=${1:-build.sh}
-
+SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
# Run all build scripts in direct subdirectories
-for buildfile in $(find -mindepth 2 -maxdepth 2 -name ${BUILD_SCRIPT});
+for buildfile in $(find ${SCRIPTPATH} -mindepth 2 -maxdepth 2 -name ${BUILD_SCRIPT});
do
pushd $(dirname ${buildfile})
. ${BUILD_SCRIPT}