From 7cdf04af5547fee5eb20ecb3142db9b0744fc267 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 6 Mar 2018 08:30:47 -0500 Subject: [PATCH] improvements to test runner Signed-off-by: Kenneth Reitz --- run-tests.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 570143a9..511e2252 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -9,7 +9,7 @@ export PYPI_VENDOR_DIR if [[ ! -z "$TEST_SUITE" ]]; then - TEST_SUITE="" + echo "Using TEST_SUITE=$TEST_SUITE" fi if [[ ! -z "$CI" ]]; then @@ -23,6 +23,7 @@ if [[ ! -z "$CI" ]]; then pip install -e . --upgrade --upgrade-strategy=only-if-needed pipenv install --deploy --system --dev + TAP_OUPUT=1 else # Otherwise, assume MacOS… @@ -39,4 +40,10 @@ else pipenv install --dev fi -pipenv run time pytest -v -n auto tests -m "$TEST_SUITE" --tap-stream | tee report.tap \ No newline at end of file +if [[ "$TAP_OUTPUT" ]]; then + echo "$ pipenv run time pytest -v -n auto tests -m \"$TEST_SUITE\" --tap-stream | tee report.tap" + pipenv run time pytest -v -n auto tests -m "$TEST_SUITE" --tap-stream | tee report.tap +else + echo "$ pipenv run time pytest -v -n auto tests -m \"$TEST_SUITE\"" + pipenv run time pytest -v -n auto tests -m "$TEST_SUITE" +fi \ No newline at end of file