pegleg/tools/gate/run-unit-tests.sh
Felipe Monteiro ec34ed056f Allow tox to support regexes for unit tests
This patch set adds a shell wrapper script to allow
tox to be used to run a subset of unit tests via regexes:

To run all unit tests, execute::

  $ tox -epy35

To run unit tests using a regex, execute::

  $ tox -epy35 -- <regex>

Change-Id: I2ba1e18226d686cb549a075e020ba02e24204829
2018-10-22 10:18:05 -04:00

11 lines
122 B
Bash
Executable File

#!/usr/bin/env bash
set -e
posargs=$@
if [ ${#posargs} -ge 1 ]; then
pytest -k ${posargs}
else
pytest
fi
set +e