I was seeing an issue where modifying PATH caused the Ruby plugin tests to fail. I fixed that and while digging around fixed an issue that would cause the tests to behave weirdly if run from any other location. This solves one of the issues noted in #687, but I haven't tried running the new tests from that PR with these changes.
6 lines
253 B
Bash
Executable File
6 lines
253 B
Bash
Executable File
#!/usr/bin/env bash
|
|
_TEST_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
_BATS="${_TEST_DIR}/../bats/bin/bats"
|
|
[ ! -e $_BATS ] && git clone --depth 1 https://github.com/sstephenson/bats.git ${_TEST_DIR}/../bats
|
|
exec $_BATS ${CI:+--tap} ${_TEST_DIR}/{lib,plugins}
|