Allow to specify tests to run on run-bats command line
# executes the tests in that container, mounting the tests and Habitat
# binaries as needed.
+if [ $# -eq 0 ] ; then
+ TESTS="."
+else
+ TESTS="$*"
+fi
+
docker build -t hab-bats-cleanroom "$(pwd)"/test/integration
docker run -it --rm \
@@ -13,5 +19,6 @@ docker run -it --rm \
--mount type=bind,source="$(pwd)/target/debug/hab",target=/bin/hab \
--env HAB_BIN_DIR=/bin \
--workdir=/test \
+ --name hab-bats \
hab-bats-cleanroom \
- bats .
+ bats "${TESTS}"
\ No newline at end of file
