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

Python test suite: make scenario initialization consistent

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.3.11, 3.2.10
    • Labels:
      None

      Description

      To take full advantage of WT-2767, we'd like to make sure that every time we create scenarios in the test suite, we call number_scenarios(). We already require that check_scenarios() be called, and that is called by number_scenarios(). Some tests call number_scenarios(), some call check_scenarios(). In addition, there is multiply_scenarios to combine multiple scenarios into one.

      This feels confusing, and is certainly inconsistent. I'd propose a single function: make_scenarios() that takes one or more scenarios as arguments, calls multiply_scenarios(), then check_scenarios(), and finally number_scenarios(). In the tests, get rid of all the other calls, and consistently call make_scenarios(). This will touch most of the test/suite files.

        Attachments

          Activity

            People

            • Assignee:
              donald.anderson Donald Anderson
              Reporter:
              donald.anderson Donald Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: