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

smoke.py shouldn't print a traceback on regular test failures

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • None

    Description

      When smoke.py finishes running, it prints output like:

       [2014/07/25 04:28:18.703] 150 tests succeeded
       [2014/07/25 04:28:18.703] 18 tests didn't get run
       [2014/07/25 04:28:18.703] The following tests failed (with exit code):
       [2014/07/25 04:28:18.703] /data/mci/shell/src/jstests/sharding/mongos_rs_shard_failure_tolerance.js	253
       [2014/07/25 04:28:18.711] Traceback (most recent call last):
       [2014/07/25 04:28:18.711]   File "buildscripts/smoke.py", line 1311, in <module>
       [2014/07/25 04:28:18.711]     main()
       [2014/07/25 04:28:18.711]   File "buildscripts/smoke.py", line 1308, in main
       [2014/07/25 04:28:18.711]     report()
       [2014/07/25 04:28:18.711]   File "buildscripts/smoke.py", line 823, in report
       [2014/07/25 04:28:18.711]     raise Exception("Test failures")
       [2014/07/25 04:28:18.711] Exception: Test failures
       [2014/07/25 04:28:18.713] Command failed: exit status 1

      The python traceback portion of this is noisy and irrelevant, and distracts from the useful bits when looking at MCI logs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: