Skip to content

Commit

Permalink
Make test script independent of pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Jun 24, 2021
1 parent 4f3cdf6 commit 2c80d3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Run this file to run all the tests, once
#!/usr/bin/env bash

# Run this file to run all the tests in test/*.bats

parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path"
./test/libs/bats/bin/bats test/*.bats

0 comments on commit 2c80d3a

Please sign in to comment.