[SERVER-76620] query_golden_* jstests should ensure test output is EOL-terminated Created: 27/Apr/23  Updated: 29/Oct/23  Resolved: 04/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: David Percy Assignee: David Percy
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-72867 normalize all text file lines to be E... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-05-15
Participants:
Linked BF Score: 153

 Description   

Normally, the print() function in the mongo shell automatically newline-terminates the string:

> print('a'); print('b')
a
b
> print('a\n'); print('b\n')
a
b
> print('a\n\n'); print('b\n\n')
a
 
b
 
>

We should do the same thing when we capture the output for the query_golden_* suites. This will ensure the expected-output files are EOL-terminated.



 Comments   
Comment by Githook User [ 01/May/23 ]

Author:

{'name': 'David Percy', 'email': 'david.percy@mongodb.com', 'username': 'dpercy'}

Message: SERVER-76620 Ensure golden output of each print() is newline-terminated
Branch: master
https://github.com/mongodb/mongo/commit/86bd5899b0db0681fd5cd2b2fae0452922958979

Generated at Thu Feb 08 06:33:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.