Skip to content

Commit 2c80d3a

Browse files
committed
Make test script independent of pwd
1 parent 4f3cdf6 commit 2c80d3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
# Run this file to run all the tests, once
1+
#!/usr/bin/env bash
2+
3+
# Run this file to run all the tests in test/*.bats
4+
5+
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
6+
cd "$parent_path"
27
./test/libs/bats/bin/bats test/*.bats

0 commit comments

Comments
 (0)