[Kimchi-devel] [PATCH V2 1/2] Skip the debug report test if there is no tool avaible
Shu Ming
shuming at linux.vnet.ibm.com
Wed Jan 15 08:37:00 UTC 2014
Skip the debug report test if there is no tool avaible
Signed-off-by: Shu Ming <shuming at 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 a38e3c6..4a78fbc 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -636,6 +636,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
More information about the Kimchi-devel
mailing list