summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Vander Giessen <pete.vandergiessen@canonical.com>2019-03-07 17:10:47 -0500
committerPete Vander Giessen <pete.vandergiessen@canonical.com>2019-03-07 17:10:51 -0500
commitadfd6000343b1c2c7a474ee47b3bbacd115cfb0e (patch)
treee425545c49db5562b20f13d61ae23d0d71ee72f4
parent14507e4ea72c7729c019c652e9cab9ede61dcf15 (diff)
Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr directly. Change-Id: I6c3f97d94d26f01b08cdb20421f6637ab2ba4345
Notes
Notes (review): Verified-1: Canonical CI <uosci-testing-bot@ubuntu.com> Code-Review+2: David Ames <david.ames@canonical.com> Code-Review+2: Ryan Beisner <ryan.beisner@canonical.com> Workflow+1: Ryan Beisner <ryan.beisner@canonical.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 08 Mar 2019 19:28:21 +0000 Reviewed-on: https://review.openstack.org/641824 Project: openstack/charm-cinder-backup Branch: refs/heads/master
-rw-r--r--.stestr.conf3
-rw-r--r--.testr.conf8
-rw-r--r--test-requirements.txt2
-rw-r--r--tox.ini4
4 files changed, 6 insertions, 11 deletions
diff --git a/.stestr.conf b/.stestr.conf
new file mode 100644
index 0000000..5fcccac
--- /dev/null
+++ b/.stestr.conf
@@ -0,0 +1,3 @@
1[DEFAULT]
2test_path=./unit_tests
3top_dir=./
diff --git a/.testr.conf b/.testr.conf
deleted file mode 100644
index 801646b..0000000
--- a/.testr.conf
+++ /dev/null
@@ -1,8 +0,0 @@
1[DEFAULT]
2test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3 OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4 OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5 ${PYTHON:-python} -m subunit.run discover -t ./ ./unit_tests $LISTOPT $IDOPTION
6
7test_id_option=--load-list $IDFILE
8test_list_option=--list
diff --git a/test-requirements.txt b/test-requirements.txt
index 2b2c0e1..272ce1d 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -5,7 +5,7 @@ charm-tools>=2.4.4
5coverage>=3.6 5coverage>=3.6
6mock>=1.2 6mock>=1.2
7flake8>=2.2.4,<=2.4.1 7flake8>=2.2.4,<=2.4.1
8os-testr>=0.4.1 8stestr>=2.2.0
9requests>=2.18.4 9requests>=2.18.4
10# BEGIN: Amulet OpenStack Charm Helper Requirements 10# BEGIN: Amulet OpenStack Charm Helper Requirements
11# Liberty client lower constraints 11# Liberty client lower constraints
diff --git a/tox.ini b/tox.ini
index 7c2e71c..bd22d0b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,7 @@ setenv = VIRTUAL_ENV={envdir}
12 AMULET_SETUP_TIMEOUT=5400 12 AMULET_SETUP_TIMEOUT=5400
13install_command = 13install_command =
14 pip install {opts} {packages} 14 pip install {opts} {packages}
15commands = ostestr {posargs} 15commands = stestr run {posargs}
16whitelist_externals = juju 16whitelist_externals = juju
17passenv = HOME TERM AMULET_* CS_API_* 17passenv = HOME TERM AMULET_* CS_API_*
18 18
@@ -50,7 +50,7 @@ setenv =
50 PYTHON=coverage run 50 PYTHON=coverage run
51commands = 51commands =
52 coverage erase 52 coverage erase
53 ostestr {posargs} 53 stestr run {posargs}
54 coverage combine 54 coverage combine
55 coverage html -d cover 55 coverage html -d cover
56 coverage xml -o cover/coverage.xml 56 coverage xml -o cover/coverage.xml