summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2018-05-24 11:16:07 -0700
committerSlawek Kaplonski <skaplons@redhat.com>2018-06-22 12:50:11 +0200
commitc886130f1530a9f3374f1b2c255d5070924f3947 (patch)
treeb17ac60a14a17448890d39a6489926ed28b7bc84
parentfd44a5a96a3a3f83f7f3eb244b67acb7b974a50a (diff)
Switch to stestr
According to Openstack summit session [1] stestr is maintained project to which all Openstack projects should migrate. Let's switch it then. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: Idd7629f2a051aadaf53b04a1b331b20d7fa690de
Notes
Notes (review): Code-Review+1: Nguyen Hai <nguyentrihai93@gmail.com> Code-Review+1: Bernard Cafarelli <bcafarel@redhat.com> Code-Review+1: Manjeet Singh Bhatia <manjeet.s.bhatia@intel.com> Code-Review+2: Brian Haley <haleyb.dev@gmail.com> Code-Review+2: Miguel Lavalle <miguel.lavalle@huawei.com> Workflow+1: Miguel Lavalle <miguel.lavalle@huawei.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 22 Jun 2018 20:52:26 +0000 Reviewed-on: https://review.openstack.org/570426 Project: openstack/neutron-specs Branch: refs/heads/master
-rw-r--r--.gitignore3
-rw-r--r--.stestr.conf3
-rw-r--r--.testr.conf4
-rw-r--r--requirements.txt2
-rw-r--r--tox.ini8
5 files changed, 12 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index b496d62..cdf703f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ build
7*.swp 7*.swp
8*.swo 8*.swo
9*.pyc 9*.pyc
10.testrepository
11.idea/* 10.idea/*
12*~ 11*~
12!/.stestr.conf
13.stestr/
diff --git a/.stestr.conf b/.stestr.conf
new file mode 100644
index 0000000..25d6b51
--- /dev/null
+++ b/.stestr.conf
@@ -0,0 +1,3 @@
1[DEFAULT]
2test_path=${OS_TEST_PATH:-./tests/}
3top_dir=./
diff --git a/.testr.conf b/.testr.conf
deleted file mode 100644
index 1641f86..0000000
--- a/.testr.conf
+++ /dev/null
@@ -1,4 +0,0 @@
1[DEFAULT]
2test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
3test_id_option=--load-list $IDFILE
4test_list_option=--list
diff --git a/requirements.txt b/requirements.txt
index 14787d8..89ed594 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,5 +3,5 @@
3# integrated gate. Any sync must happen manually as recommended by 3# integrated gate. Any sync must happen manually as recommended by
4# the openstack release team. 4# the openstack release team.
5pbr>=2.0.0,!=2.1.0 # Apache-2.0 5pbr>=2.0.0,!=2.1.0 # Apache-2.0
6testrepository>=0.0.18 # Apache-2.0/BSD 6stestr>=1.0.0 # Apache-2.0
7testtools>=1.4.0 # MIT 7testtools>=1.4.0 # MIT
diff --git a/tox.ini b/tox.ini
index 29bb008..b10fe74 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,14 +5,18 @@ skipsdist = True
5 5
6[testenv] 6[testenv]
7usedevelop = True 7usedevelop = True
8setenv = VIRTUAL_ENV={envdir} 8setenv =
9 VIRTUAL_ENV={envdir}
10 OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
11 OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
12 OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
9install_command = pip install -U {opts} {packages} 13install_command = pip install -U {opts} {packages}
10# Unit test requires docutils and it is recommended to install docutils via 14# Unit test requires docutils and it is recommended to install docutils via
11# sphinx. We use doc/requirements.txt as well to avoid duplicated entries. 15# sphinx. We use doc/requirements.txt as well to avoid duplicated entries.
12deps = 16deps =
13 -r{toxinidir}/requirements.txt 17 -r{toxinidir}/requirements.txt
14 -r{toxinidir}/doc/requirements.txt 18 -r{toxinidir}/doc/requirements.txt
15commands = python setup.py testr --slowest --testr-args='{posargs}' 19commands = stestr run --slowest {posargs}
16 20
17[testenv:venv] 21[testenv:venv]
18commands = {posargs} 22commands = {posargs}