Adds option to skip specific tests
With this we can specify a class name or a specific test
(class.method) to skip.
Change-Id: I2effb5c937fbe2b54a34049651b0d5d194550589
diff --git a/scenario/scenario_base.py b/scenario/scenario_base.py
index e347e6a..84e14a9 100644
--- a/scenario/scenario_base.py
+++ b/scenario/scenario_base.py
@@ -59,8 +59,10 @@
return stack_id
def check_skip_test(self):
- test_name = self.__class__.__name__
- test_skipped = (self.conf.skip_scenario_test_list and
- test_name in self.conf.skip_scenario_test_list)
+ test_cls_name = self.__class__.__name__
+ test_method_name = '.'.join([test_cls_name, self._testMethodName])
+ test_skipped = (self.conf.skip_scenario_test_list and (
+ test_cls_name in self.conf.skip_scenario_test_list or
+ test_method_name in self.conf.skip_scenario_test_list))
if self.conf.skip_scenario_tests or test_skipped:
self.skipTest('Test disabled in conf, skipping')