Migrate to testrepository.
Needed to move some directory creation around to be contained within the
testcase, but with parallel testing, we shave 48 seconds off the run
time and go from around 60s to around 11. We're also now compatible with
future subunit-based fast-fail semantics when we grow them.
Change-Id: I6c7148c29d1edb5d9469a8c2afe4b31b2b340009
Reviewed-on: https://review.openstack.org/33352
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
diff --git a/tests/test_layoutvalidator.py b/tests/test_layoutvalidator.py
index 343dc47..f822546 100644
--- a/tests/test_layoutvalidator.py
+++ b/tests/test_layoutvalidator.py
@@ -14,11 +14,12 @@
# License for the specific language governing permissions and limitations
# under the License.
-import unittest
import os
import re
-import yaml
+
+import testtools
import voluptuous
+import yaml
import zuul.layoutvalidator
@@ -27,7 +28,7 @@
LAYOUT_RE = re.compile(r'^(good|bad)_.*\.yaml$')
-class testScheduler(unittest.TestCase):
+class testScheduler(testtools.TestCase):
def test_layouts(self):
"""Test layout file validation"""
print