From 690c32ceb8dcb3441b824bc13a7042161dff6b5d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Oct 2017 19:47:40 -0400 Subject: [PATCH] fix: use the same method to trigger the client --- tests/unit/30_client.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/30_client.bats b/tests/unit/30_client.bats index 126206222..f2670a330 100644 --- a/tests/unit/30_client.bats +++ b/tests/unit/30_client.bats @@ -23,7 +23,7 @@ teardown() { } @test "(client) no args should print help" { - run /bin/bash -c "./contrib/dokku_client.sh | head -1 | grep -E '^Usage: dokku \[.+\] COMMAND \[.+\]'" + run bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh | head -1 | grep -E '^Usage: dokku \[.+\] COMMAND \[.+\]'" echo "output: "$output echo "status: "$status assert_success