Skip to content

Commit 75b3876

Browse files
committed
acceptance-tests: test-smoke handles directory changing
This change should make the script runnable from any location
1 parent da95168 commit 75b3876

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

acceptance-tests/bin/test-smoke

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22
set -eu -o pipefail
3-
set -e
43

5-
go run github.com/onsi/ginkgo/v2/ginkgo --skip-package vendor -r "$@"
4+
ACCEPTANCE_TESTS_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
65

7-
echo -e "\n\033[0;32mSUCCESS\033[0m"
6+
pushd "${ACCEPTANCE_TESTS_ROOT}"
7+
go run github.com/onsi/ginkgo/v2/ginkgo run -r "$@"
8+
echo -e "\n\033[0;32mSUCCESS\033[0m"
9+
popd

0 commit comments

Comments
 (0)