From a82d5fe2ef0e4a2bcb15463c35564c603f6e7d9c Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 17 Feb 2018 19:24:10 -0500 Subject: Refactoring the Makefile Signed-off-by: Dave Henderson --- test/integration/helper.bash | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/integration/helper.bash b/test/integration/helper.bash index 39c30fe6..5ae28e16 100644 --- a/test/integration/helper.bash +++ b/test/integration/helper.bash @@ -1,5 +1,7 @@ #!/bin/bash +helper_dir=${BASH_SOURCE%/*} + function gomplate () { run bin/gomplate "$@" @@ -27,7 +29,7 @@ function __gomplate_stdin () { } function start_mirror_svc () { - bin/mirror & + ${helper_dir}/mirror & wait_for_url http://127.0.0.1:8080/ } @@ -36,7 +38,7 @@ function stop_mirror_svc () { } function start_meta_svc () { - bin/meta &> /tmp/meta.log & + ${helper_dir}/meta &> /tmp/meta.log & wait_for_url http://127.0.0.1:8081/ } @@ -45,7 +47,7 @@ function stop_meta_svc () { } function start_aws_svc () { - bin/aws & + ${helper_dir}/aws & wait_for_url http://127.0.0.1:8082/ } -- cgit v1.2.3