Files
gerrit/polygerrit-ui/app/run_template_test.sh
Ole Rehmsen 47403815d6 Downport "Simplify installing / running template tests"
Also fixed a bug in the script that would cause it to ignore half of the
arguments.

Change-Id: Iba65c8d2e10a35c06946d28cfcaa76c61314e2b0
2019-12-27 11:56:39 +01:00

18 lines
372 B
Bash
Executable File

#!/usr/bin/env bash
if [[ -z "${TEMPLATE_NO_DEFAULT}" ]]; then
bazel test \
--test_env="HOME=$HOME" \
//polygerrit-ui/app:all \
--test_tag_filters=template \
"$@" \
--test_output errors \
--nocache_test_results
else
bazel test \
--test_env="HOME=$HOME" \
"$@" \
--test_output errors \
--nocache_test_results
fi