Python tests missing check on entry point

XMLWordPrintableJSON

    • Type: Technical Debt
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • StorEng - Defined Pipeline
    • 3

      Many of our Python tests contain the following lines:

      if __name__ == '__main__':
          wttest.run()
      

      But many don't and this can be checked with the following command:

      $ grep -L "wttest.run()" test/suite/test_*
      

      In this ticket, we should check whether we need it and make it consistent.

      Work to be done:

      • Remove this check for all Python tests except the ones from the test/compatibility folder introduced by WT-10533.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: