Skip the debug report test if there is no tool avaible
Signed-off-by: Shu Ming <shuming(a)linux.vnet.ibm.com>
---
tests/test_model.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/test_model.py b/tests/test_model.py
index c689bcc..dad4670 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -610,6 +610,10 @@ class ModelTests(unittest.TestCase):
def test_debug_reports(self):
inst = kimchi.model.Model('test:///default',
objstore_loc=self.tmp_store)
+
+ if not inst.get_capabilities()['system_report_tool']:
+ raise unittest.SkipTest("Without debug report tool")
+
namePrefix = 'unitTestReport'
# sosreport always deletes unsual letters like '-' and '_' in
the
# generated report file name.
--
1.8.1.4