Move print.captureAllOutput from printShardingStatus jstest to utils.js

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: 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)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: