Add re.MULTILINE to regex search in primitive_check.py

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • StorEng - 2023-06-13
    • 1

      Our current regex check in dist/primitive_check.py looks for concurrency primitives modified in a git diff by searching for the stringĀ  "(+|-).*{concurrency_primitive}". However the re.search() call isn't taking the re.MULTILINE flag which means the '' symbol doesn't correctly match against newlines in the text being searched. We need to add this flag.

            Assignee:
            Andrew Morton
            Reporter:
            Andrew Morton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: