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

Move print.captureAllOutput from printShardingStatus jstest to utils.js

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • Sharding 7 08/10/15, Sharding 8 08/28/15, Sharding 9 (09/18/15), Sharding A (10/09/15)

      When testing shell code that uses print() to output, it's necessary to use a fake print() function that captures what would otherwise be output (so that it can be checked).

      SERVER-18796 introduces a printShardingStatus jstest which has a print.captureAllOutput() function to do this generally. jstests/auth/show_log_auth.js also does something similar.

            Assignee:
            kevin.pulo@mongodb.com Kevin Pulo
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: