Browse Source

Migrate to stestr

Change-Id: Id717f076d13f10697a7528139950a0b70d95c1c3
changes/44/603244/4
Ben Nemec 3 years ago
parent
commit
bd7cc62a73
5 changed files with 8 additions and 16 deletions
  1. +3
    -4
      .gitignore
  2. +2
    -0
      .stestr.conf
  3. +0
    -9
      .testr.conf
  4. +1
    -1
      setup.cfg
  5. +2
    -2
      tools/pretty_tox.sh

+ 3
- 4
.gitignore View File

@ -2,21 +2,20 @@
*.egg
*.egg-info
build
/.*
!.coveragerc
!.gitignore
!.mailmap
!.testr.conf
.*.sw?
cover/*
covhtml
dist
.tox
.coverage
# Generated by pbr
AUTHORS
ChangeLog
# Generated by testrepository
.testrepository
# Generated by stestr
.stestr/
# Generated by etcd
etcd-v*
default.etcd


+ 2
- 0
.stestr.conf View File

@ -0,0 +1,2 @@
[DEFAULT]
test_path=tooz

+ 0
- 9
.testr.conf View File

@ -1,9 +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:-160} \
OS_DEBUG=${OS_DEBUG:-TRACE} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover tooz $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

+ 1
- 1
setup.cfg View File

@ -65,12 +65,12 @@ ipc =
test =
mock>=2.0 # BSD
python-subunit>=0.0.18 # Apache-2.0/BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
coverage>=3.6 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
pifpaf>=0.10.0 # Apache-2.0
os-testr>=0.8.0 # Apache-2.0
stestr>=2.0.0
doc =
sphinx>=1.6.2 # BSD
openstackdocstheme>=1.11.0 # Apache-2.0


+ 2
- 2
tools/pretty_tox.sh View File

@ -10,7 +10,7 @@ TESTRARGS=$1
#
# this work around exists until that is addressed
if [[ "$TESTARGS" =~ "until-failure" ]]; then
python setup.py testr --slowest --testr-args="$TESTRARGS"
stestr run --slowest "$TESTRARGS"
else
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
stestr run --slowest --subunit "$TESTRARGS" | subunit-trace -f
fi

Loading…
Cancel
Save