Changeset 0b6c1c9 for tests


Ignore:
Timestamp:
May 7, 2024, 7:04:31 PM (7 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
6d9aa79
Parents:
c333ed2 (diff), 083e637 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    rc333ed2 r0b6c1c9  
    120120                return (False, "'file EXPECT' failed with code {} '{}'".format(code, err))
    121121
    122         match = re.search(".*: (.*)", out)
     122        match = re.search(r".*: (.*)", out)
    123123
    124124        if not match:
     
    306306                sys.exit(1)
    307307
    308         re_jobs = re.search("--jobserver-(auth|fds)", out)
     308        re_jobs = re.search(r"--jobserver-(auth|fds)", out)
    309309        if not re_jobs:
    310310                print("ERROR: cannot find Makefile jobserver version", file=sys.stderr)
  • tests/test.py

    rc333ed2 r0b6c1c9  
    2323
    2424        def match_test(path):
    25                 match = re.search("^%s\/([\w\/\-_]*).expect\/([\w\-_\+]+)(\.[\w\-_]+)?\.txt$" % settings.SRCDIR, path)
     25                match = re.search(r'^%s\/([\w\/\-_]*).expect\/([\w\-_\+]+)(\.[\w\-_]+)?\.txt$' % settings.SRCDIR, path)
    2626                if match :
    2727                        test = Test()
     
    359359                                sys.exit(1)
    360360
    361                         print(' '.join(re.findall('([^\s]+\.cfa)', out)), end=' ')
     361                        print(' '.join(re.findall(r'([^\s]+\.cfa)', out)), end=' ')
    362362
    363363                print('')
Note: See TracChangeset for help on using the changeset viewer.