summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/verify.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-10-01 18:23:34 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-10-01 18:23:34 +0000
commit40768bad4c7eb966b2a8c1308cdae22e578b2413 (patch)
tree0c89c35c6bff4fc827b3703ef5f5f1b6efedd057 /tests/cloud_tests/verify.py
parentc239eb82f1bfe1d0c4b79f2a733f04cfb3277fbf (diff)
downloadvyos-cloud-init-40768bad4c7eb966b2a8c1308cdae22e578b2413.tar.gz
vyos-cloud-init-40768bad4c7eb966b2a8c1308cdae22e578b2413.zip
tests: allow skipping an entire cloud_test without running.
Individual skipTest or setUp SkipTest will still launch the instance. This allows us to stop the running of the instance so we don't waste cycles or boot systems that are known to fail. Also replace remaining unittest usage in tests/cloud_tests/ with unittest2.
Diffstat (limited to 'tests/cloud_tests/verify.py')
-rw-r--r--tests/cloud_tests/verify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cloud_tests/verify.py b/tests/cloud_tests/verify.py
index bfb27444..9911ecf2 100644
--- a/tests/cloud_tests/verify.py
+++ b/tests/cloud_tests/verify.py
@@ -3,7 +3,7 @@
"""Verify test results."""
import os
-import unittest
+import unittest2
from tests.cloud_tests import (config, LOG, util, testcases)
@@ -18,7 +18,7 @@ def verify_data(data_dir, platform, os_name, tests):
@return_value: {<test_name>: {passed: True/False, failures: []}}
"""
base_dir = os.sep.join((data_dir, platform, os_name))
- runner = unittest.TextTestRunner(verbosity=util.current_verbosity())
+ runner = unittest2.TextTestRunner(verbosity=util.current_verbosity())
res = {}
for test_name in tests:
LOG.debug('verifying test data for %s', test_name)