jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/588151 )
Change subject: [IMPR] print exit code with script tests auto run ......................................................................
[IMPR] print exit code with script tests auto run
Change-Id: I57a320bfe576c7af780a4a54c2b471b99cc6f45e --- M tests/script_tests.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/script_tests.py b/tests/script_tests.py index dac48de..e5e1910 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -279,11 +279,13 @@ '{} seconds'.format(timeout), end=' ') elif 'SIMULATION: edit action blocked' in err_result: unittest_print(' auto-run script simulated edit ' - 'blocked', end=' ') + 'blocked', end=' ') else: unittest_print( ' auto-run script stderr within {} seconds: {!r}' .format(timeout, err_result), end=' ') + unittest_print(' exit code: {}' + .format(result['exit_code']), end=' ')
self.assertNotIn('Traceback (most recent call last)', err_result)
pywikibot-commits@lists.wikimedia.org