Xqt submitted this change.
[tests] Speedup script_tests
Do not collect scripts for 'TestScriptGenerator' it they are in
'_expected_failures' set
Change-Id: Ie42f4ba2e3297657302744de5a7a7694804f10ae
---
M tests/script_tests.py
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/tests/script_tests.py b/tests/script_tests.py
index d60ce6c..435683e 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -306,13 +306,15 @@
.format(script_name, arguments))
if script_name in dct['_expected_failures']:
+ if name == 'TestScriptGenerator':
+ continue # do not test it
dct[test_name] = unittest.expectedFailure(dct[test_name])
elif script_name in dct['_allowed_failures']:
dct[test_name] = unittest.skip(
'{} is in _allowed_failures set'
.format(script_name))(dct[test_name])
elif script_name in failed_dep_script_set \
- and arguments == '-simulate':
+ and name == 'TestScriptSimulate':
dct[test_name] = unittest.skip(
'{} has dependencies; skipping'
.format(script_name))(dct[test_name])
To view, visit change 959185. To unsubscribe, or for help writing mail filters, visit settings.