Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76620

query_golden_* jstests should ensure test output is EOL-terminated

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QO 2023-05-15
    • 153

      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.

            Assignee:
            david.percy@mongodb.com David Percy
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: