test/run: handle optional paths/args for bats

This allows to run a single test file more easily, although that could be
done by calling bats directly.
This commit is contained in:
Daniel Hahler 2018-09-19 08:23:41 +02:00
parent 1c772d5ff2
commit ae2e7a3f0b

View file

@ -6,4 +6,4 @@ if [ -n "$RBENV_NATIVE_EXT" ]; then
make -C src
fi
exec bats ${CI:+--tap} test
exec bats ${CI:+--tap} "${@:-test}"