[virt-tools-list] [PATCH v2 1/6] tests/virtconv: ignore skip exceptions
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Thu Feb 22 11:34:17 UTC 2018
From: Marc-André Lureau <marcandre.lureau at redhat.com>
Instead of reporting an error and traceback, we could ignore skip
errors. The drawback is that they are now silent.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
tests/virtconvtest.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/virtconvtest.py b/tests/virtconvtest.py
index dbb35612..188b4fd0 100644
--- a/tests/virtconvtest.py
+++ b/tests/virtconvtest.py
@@ -82,6 +82,8 @@ class TestVirtConv(unittest.TestCase):
for in_path in glob.glob(os.path.join(in_dir, "*")):
try:
self._compare_single_file(in_path, in_type)
+ except unittest.case.SkipTest:
+ continue
except Exception:
import traceback
err += traceback.format_exc()
--
2.16.1.73.g5832b7e9f2
More information about the virt-tools-list
mailing list