[Kimchi-devel] [PATCH V1 1/2] Skip the debug report test if there is no tool avaible
Sheldon
shaohef at linux.vnet.ibm.com
Thu Jan 9 14:17:43 UTC 2014
Reviewed-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
On 01/09/2014 06:40 PM, Shu Ming wrote:
> 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 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.
--
Thanks and best regards!
Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center
More information about the Kimchi-devel
mailing list