Browse Source

Switch to stestr

stestr is actively maintained. OpenStack is migrating to stestr,
so we should follow suit.

Change-Id: I1b958681cbf53281c9da91c747c9a2cfe2beccf3
changes/77/569277/1
Felipe Monteiro 3 years ago
committed by Bryan Strassner
parent
commit
9cae8f3b2b
5 changed files with 10 additions and 12 deletions
  1. +3
    -0
      .stestr.conf
  2. +0
    -7
      .testr.conf
  3. +1
    -1
      tools/run_pifpaf.sh
  4. +2
    -2
      tools/unit-tests.sh
  5. +4
    -2
      tox.ini

+ 3
- 0
.stestr.conf View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=deckhand/tests/unit
top_dir=./

+ 0
- 7
.testr.conf View File

@ -1,7 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./deckhand/tests/unit} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

+ 1
- 1
tools/run_pifpaf.sh View File

@ -20,4 +20,4 @@ set -eo pipefail
TESTRARGS=$1
python setup.py testr --slowest --testr-args="--subunit --concurrency=1 $TESTRARGS" | subunit-trace -f
stestr run --concurrency=1 --slowest $TESTRARGS

+ 2
- 2
tools/unit-tests.sh View File

@ -33,8 +33,8 @@ export DATABASE_URL=postgresql+psycopg2://$(whoami):password@$POSTGRES_IP:5432/d
set -e
posargs=$@
if [ ${#posargs} -ge 1 ]; then
ostestr --concurrency 1 --regex ${posargs}
stestr run --concurrency=1 ${posargs}
else
ostestr --concurrency 1
stestr run --concurrency=1
fi
set +e

+ 4
- 2
tox.ini View File

@ -21,7 +21,8 @@ commands =
[testenv:py27]
commands =
{[testenv]commands}
ostestr --regex '{posargs}'
stestr run {posargs}
stestr slowest
[testenv:py27-postgresql]
commands =
@ -31,7 +32,8 @@ commands =
[testenv:py35]
commands =
{[testenv]commands}
ostestr --regex '{posargs}'
stestr run {posargs}
stestr slowest
[testenv:py35-postgresql]
commands =


Loading…
Cancel
Save