From e7557faf358b07aca0cf891152fc8e9892923a2b Mon Sep 17 00:00:00 2001
From: Charles Short <zulcss@gmail.com>
Date: Thu, 31 May 2018 09:19:47 -0400
Subject: [PATCH] Switch to using 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: I745facad3669aa8d737e63c39b3b60cbf34dcafe
Signed-off-by: Charles Short <zulcss@gmail.com>
---
 .gitignore            | 1 +
 .stestr.conf          | 3 +++
 test-requirements.txt | 2 +-
 tox.ini               | 2 +-
 4 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 .stestr.conf

diff --git a/.gitignore b/.gitignore
index 0af11f2..d557cc3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ pip-log.txt
 .tox
 nosetests.xml
 .testrepository
+.stestr
 .venv
 
 # Translations
diff --git a/.stestr.conf b/.stestr.conf
new file mode 100644
index 0000000..d6fce1b
--- /dev/null
+++ b/.stestr.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+test_path=./storyboardclient/tests/
+top_dir=./
diff --git a/test-requirements.txt b/test-requirements.txt
index ceaa9df..aee5c7b 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -7,7 +7,7 @@ hacking>=0.9.2,<0.10
 coverage>=3.6
 python-subunit
 oslotest>=1.1.0.0a1
-os-testr>=0.4.1
+stestr>=2.0.0
 testrepository>=0.0.18
 testscenarios>=0.4
 testtools>=0.9.34
diff --git a/tox.ini b/tox.ini
index a8f7a63..1c4ff73 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,7 +10,7 @@ setenv =
    VIRTUAL_ENV={envdir}
 deps = -r{toxinidir}/requirements.txt
        -r{toxinidir}/test-requirements.txt
-commands = ostestr '{posargs}'
+commands = stestr run '{posargs}'
 
 [testenv:pep8]
 commands = flake8