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)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/588151
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I57a320bfe576c7af780a4a54c2b471b99cc6f45e
Gerrit-Change-Number: 588151
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Dvorapa <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to