[SERVER-41304] Update EXIT_CODE_MAP in resmoke.py for Python 3 changes on Windows Created: 24/May/19  Updated: 29/Oct/23  Resolved: 24/May/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.12

Type: Task Priority: Minor - P4
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: STM 2019-06-03
Participants:
Linked BF Score: 18
Story Points: 1

 Description   

The changes from python/cpython@f2244ea as part of https://bugs.python.org/issue20172 changed the DWORD return value from the GetExitCodeProcess() Win32 API to be correctly interpreted as an unsigned long. That is to say, the code in Python 2.7 previously did

PyInt_FromLong(exit_code)

and was replaced with

return_value = Py_BuildValue("k", _return_value)

(where "k" means unsigned long).



 Comments   
Comment by Githook User [ 24/May/19 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-41304 Add positive versions of Windows exit codes to resmoke.py.
Branch: master
https://github.com/mongodb/mongo/commit/c15db22ece7eb515f83df5052844dde9b6a0fbac

Generated at Thu Feb 08 04:57:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.