Xqt submitted this change.

View Change

Approvals: Xqt: Verified; Looks good to me, approved
[tests] Temporary add commonscat to unrunnable_script_set

This patch is for debug purpose only

Bug: T296204
Change-Id: I193dc74434f5a2f622c642effa06f73695dfa741
---
M tests/script_tests.py
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/tests/script_tests.py b/tests/script_tests.py
index f746518..8c29872 100644
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -42,7 +42,7 @@
if not check_script_deps(name)}

# scripts which cannot be tested
-unrunnable_script_set = set()
+unrunnable_script_set = {'commonscat'}


def list_scripts(path, exclude=None):
@@ -152,17 +152,17 @@
test_list = ['tests.script_tests.TestScriptHelp.' + name
for name in tests]

- tests = (['test__login']
- + ['test_' + name
- for name in sorted(script_list)
- if name != 'login'
- and name not in failed_dep_script_set
- and name not in unrunnable_script_set
- and (enable_autorun_tests or name not in auto_run_script_list)
- ])
-
- test_list += ['tests.script_tests.TestScriptSimulate.' + name
- for name in tests]
+## tests = (['test__login']
+## + ['test_' + name
+## for name in sorted(script_list)
+## if name != 'login'
+## and name not in failed_dep_script_set
+## and name not in unrunnable_script_set
+## and (enable_autorun_tests or name not in auto_run_script_list)
+## ])
+##
+## test_list += ['tests.script_tests.TestScriptSimulate.' + name
+## for name in tests]

tests = loader.loadTestsFromNames(test_list)
suite = unittest.TestSuite()

To view, visit change 740644. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I193dc74434f5a2f622c642effa06f73695dfa741
Gerrit-Change-Number: 740644
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged