summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2018-02-17 19:24:10 -0500
committerDave Henderson <dhenderson@gmail.com>2018-02-18 17:51:40 -0500
commita82d5fe2ef0e4a2bcb15463c35564c603f6e7d9c (patch)
tree02c3862532aff57362104420ecbbb6d6e456e873 /test
parent9603fda74ca247209f93a742abcf629060e55867 (diff)
Refactoring the Makefile
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/integration/helper.bash8
1 files changed, 5 insertions, 3 deletions
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/
}