[SERVER-47860] Resmoke should not join and then split args Created: 30/Apr/20  Updated: 29/Oct/23  Resolved: 04/May/20

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

Type: Bug Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-42607 add quoting to resmoke's invocation f... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: STM 2020-05-18
Participants:

 Description   

In SERVER-42607, we joined and then split sys.argv using space as the delimiter, this causes ambiguity when arguments contain spaces. Instead we should just use the raw sys.argv and shlex.quote on that to generate the verbatim invocation.



 Comments   
Comment by Githook User [ 04/May/20 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@10gen.com', 'username': 'guoyr'}

Message: SERVER-47860 simplify resmoke verbatim invocation
Branch: master
https://github.com/mongodb/mongo/commit/9857e72862957ee113b73bb499c6bd9fbbf64c56

Generated at Thu Feb 08 05:15:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.