Changes between Version 1 and Version 2 of TestStepSubclasses


Ignore:
Timestamp:
Apr 9, 2010, 6:36:05 AM (9 years ago)
Author:
newacct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TestStepSubclasses

    v1 v2  
    3131        print lines[0]
    3232
    33         p = re.compile('OK (([0-9]*))')
    34         m = p.match(lines[0])   
     33        m = re.match(r'OK ((d*))', lines[0])   
    3534
    36         if (m <> None):
     35        if m != None:
    3736                total = int(m.group(1))
    3837                passed = int(m.group(1))
    3938                failed = 0             
    4039        else:
    41                 p = re.compile('Run: ([0-9]*).*Failure total: ([0-9]*).*Failures: ([0-9]*).*Errors: ([0-9]*)')
    42                 m = p.match(lines[0])
     40                m = re.match(r'Run: (d*).*Failure total: (d*).*Failures: (d*).*Errors: (d*)', lines[0])
    4341       
    44                 if (m <> None):
     42                if m != None:
    4543                        total = int(m.group(1))
    4644                        failed = int(m.group(2))