Allow selective cli test runs with --test_env TEST_FILE

i.e. `bazel test //deps/rabbitmq_cli:all --test_env
TEST_FILE=test/ctl/add_user_command_test.exs`
This commit is contained in:
Philip Kuryloski 2022-03-21 23:39:44 +01:00
parent 7abf749a60
commit 46221c689a
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ cd ${{TEST_UNDECLARED_OUTPUTS_DIR}}
export ERL_LIBS=$DEPS_DIR
# run the actual tests
"{elixir_home}"/bin/mix test --trace --max-failures 1
set +u
set -x
"{elixir_home}"/bin/mix test --trace --max-failures 1 ${{TEST_FILE}}
""".format(
begins_with_fun = BEGINS_WITH_FUN,
query_erlang_version = QUERY_ERL_VERSION,