summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWitold Bedyk <witold.bedyk@est.fujitsu.com>2018-07-02 13:20:05 +0200
committerWitold Bedyk <witold.bedyk@est.fujitsu.com>2018-07-30 10:37:34 +0200
commit9586972ddd50fab9a4d0349d91f8dcb125193cb7 (patch)
tree27900f6a280375b758d28f1f159b7bb3798fdc07 /tools
parenta74978619ec8daa6a9b2aa2547e161694f31aca7 (diff)
downloadceilometer-9586972ddd50fab9a4d0349d91f8dcb125193cb7.tar.gz
Migrate to stestr for running tests
stestr is recommended by OpenStack Project Testing Interface for running tests [1]. This change migrates to stestr for running unit tests and coverage job. Modified `cover` env allows running it as Zuul job and visualising its results in Gerrit. [1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running Change-Id: I9e8b79d7a18cd36946daff10abb1a2f43b1aa3a1
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pretty_tox.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh
deleted file mode 100755
index 799ac184..00000000
--- a/tools/pretty_tox.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-set -o pipefail
-
-TESTRARGS=$1
-
-# --until-failure is not compatible with --subunit see:
-#
-# https://bugs.launchpad.net/testrepository/+bug/1411804
-#
-# this work around exists until that is addressed
-if [[ "$TESTARGS" =~ "until-failure" ]]; then
- python setup.py testr --slowest --testr-args="$TESTRARGS"
-else
- python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
-fi