Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12261

Fix python test suites failing to preserve files

    • Storage Engines
    • 3
    • StorEng - 2024-01-23, 2024-02-06 tapioooooooooooooca

      Currently, the python test suite is failing to preserve the artifacts in the event of a test failure. This is due to incorrectly setting the passed field in wttest. This can be seen in the results.txt file of the python suite test output having "passed=True" for a failed test. For example:
      Output:

      ======================================================================
      FAIL: test_compact12.test_compact12.test_compact12_truncate
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/wiredtiger/test/suite/wttest.py", line 233, in _callTestMethod
          method()
        File "/home/ubuntu/wiredtiger/test/suite/test_compact12.py", line 122, in test_compact12_truncate
          self.assertGreater(0, 1)
      AssertionError: 0 not greater than 1
      

      results.txt output:

          test_compact12.test_compact12.test_compact12_truncate: passed=True
      

            Assignee:
            sean.watt@mongodb.com Sean Watt
            Reporter:
            sean.watt@mongodb.com Sean Watt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: