summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVu Cong Tuan <tuanvc@vn.fujitsu.com>2018-07-11 09:19:56 +0700
committerVu Cong Tuan <tuanvc@vn.fujitsu.com>2018-07-11 09:51:46 +0700
commitabe1509c6f5ba1d8ff7869a555a49336ee74b45f (patch)
tree671171957fd68b225e9849a568b48c55fc97122e
parent0cd9928970c888ac340fa289710f4a9c89d82161 (diff)
Switch to stestr
According to Openstack summit session [1], stestr is maintained project to which all Openstack projects should migrate. Let's switch to stestr as other projects have already moved to it. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: I7dd587134d0047f8e18f1218d162dd5301fc732b
Notes
Notes (review): Code-Review+1: Piotr Bielak <piotr.bielak@corp.ovh.com> Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com> Code-Review+2: Brian Rosmaita <rosmaita.fossdev@gmail.com> Code-Review+2: Erno Kuvaja <jokke@usr.fi> Workflow+1: Erno Kuvaja <jokke@usr.fi> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 27 Nov 2018 16:07:10 +0000 Reviewed-on: https://review.openstack.org/581549 Project: openstack/glance-specs Branch: refs/heads/master
-rw-r--r--.gitignore2
-rw-r--r--.stestr.conf4
-rw-r--r--.testr.conf4
-rw-r--r--requirements.txt2
-rw-r--r--tox.ini2
5 files changed, 7 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 478debc..0992b16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,5 @@ build
7*.swp 7*.swp
8*.swo 8*.swo
9*.pyc 9*.pyc
10.testrepository 10.stestr/
11.DS_Store 11.DS_Store
diff --git a/.stestr.conf b/.stestr.conf
new file mode 100644
index 0000000..dcdf16e
--- /dev/null
+++ b/.stestr.conf
@@ -0,0 +1,4 @@
1[DEFAULT]
2test_path=./tests
3top_dir=./
4
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 8029a7d..d0299d6 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -9,7 +9,7 @@ sphinxcontrib-actdiag
9sphinxcontrib-blockdiag 9sphinxcontrib-blockdiag
10sphinxcontrib-nwdiag 10sphinxcontrib-nwdiag
11sphinxcontrib-seqdiag 11sphinxcontrib-seqdiag
12testrepository>=0.0.18 12stestr>=2.0.0
13testtools>=0.9.34 13testtools>=0.9.34
14yasfb>=0.5.1 14yasfb>=0.5.1
15whereto>=0.3.0 # Apache-2.0 15whereto>=0.3.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index eb5822a..bb05ab8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,7 @@ usedevelop = True
8setenv = VIRTUAL_ENV={envdir} 8setenv = VIRTUAL_ENV={envdir}
9install_command = pip install -U {opts} {packages} 9install_command = pip install -U {opts} {packages}
10deps = -r{toxinidir}/requirements.txt 10deps = -r{toxinidir}/requirements.txt
11commands = python setup.py testr --slowest --testr-args='{posargs}' 11commands = stestr run --slowest {posargs}
12 12
13[testenv:venv] 13[testenv:venv]
14commands = {posargs} 14commands = {posargs}