From d34b820cecdcddadbdad47261793ae4f0f6cd3a8 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Wed, 10 May 2017 11:12:06 +0200 Subject: [PATCH] Added some code to figure out the directory --- test/lib/helpers.bats | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/lib/helpers.bats b/test/lib/helpers.bats index 437b75a3..d29c59b5 100644 --- a/test/lib/helpers.bats +++ b/test/lib/helpers.bats @@ -10,10 +10,12 @@ load ../../lib/helpers function __setup_plugin_tests { mkdir -p $BASH_IT/plugins + + lib_directory="$(cd "$(dirname "$0")" && pwd)" pwd - ls -als .. - ls -als ../plugins - cp -r ../plugins/available $BASH_IT/plugins + echo "$lib_directory" + ls -als "$lib_directory/../.." + cp -r $lib_directory/../../plugins/available $BASH_IT/plugins mkdir -p $BASH_IT/plugins/enabled }