Show More
@@ -1731,7 +1731,9 b' class TextTestRunner(unittest.TextTestRu' | |||||
1731 | 'cuser': ('%0.3f' % timesd[tc.name][0]), |
|
1731 | 'cuser': ('%0.3f' % timesd[tc.name][0]), | |
1732 | 'csys': ('%0.3f' % timesd[tc.name][1]), |
|
1732 | 'csys': ('%0.3f' % timesd[tc.name][1]), | |
1733 | 'start': ('%0.3f' % timesd[tc.name][3]), |
|
1733 | 'start': ('%0.3f' % timesd[tc.name][3]), | |
1734 |
'end': ('%0.3f' % timesd[tc.name][4]) |
|
1734 | 'end': ('%0.3f' % timesd[tc.name][4]), | |
|
1735 | 'diff': result.faildata.get(tc.name, ''), | |||
|
1736 | } | |||
1735 | outcome[tc.name] = tres |
|
1737 | outcome[tc.name] = tres | |
1736 | jsonout = json.dumps(outcome, sort_keys=True, indent=4) |
|
1738 | jsonout = json.dumps(outcome, sort_keys=True, indent=4) | |
1737 | fp.writelines(("testreport =", jsonout)) |
|
1739 | fp.writelines(("testreport =", jsonout)) |
@@ -530,6 +530,7 b' test for --json' | |||||
530 | "test-failure.t": [\{] (re) |
|
530 | "test-failure.t": [\{] (re) | |
531 | "csys": "\s*[\d\.]{4,5}", ? (re) |
|
531 | "csys": "\s*[\d\.]{4,5}", ? (re) | |
532 | "cuser": "\s*[\d\.]{4,5}", ? (re) |
|
532 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |
|
533 | "diff": "---.+\+\+\+.+", ? (re) | |||
533 | "end": "\s*[\d\.]{4,5}", ? (re) |
|
534 | "end": "\s*[\d\.]{4,5}", ? (re) | |
534 | "result": "failure", ? (re) |
|
535 | "result": "failure", ? (re) | |
535 | "start": "\s*[\d\.]{4,5}", ? (re) |
|
536 | "start": "\s*[\d\.]{4,5}", ? (re) | |
@@ -538,6 +539,7 b' test for --json' | |||||
538 | "test-skip.t": { |
|
539 | "test-skip.t": { | |
539 | "csys": "\s*[\d\.]{4,5}", ? (re) |
|
540 | "csys": "\s*[\d\.]{4,5}", ? (re) | |
540 | "cuser": "\s*[\d\.]{4,5}", ? (re) |
|
541 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |
|
542 | "diff": "", ? (re) | |||
541 | "end": "\s*[\d\.]{4,5}", ? (re) |
|
543 | "end": "\s*[\d\.]{4,5}", ? (re) | |
542 | "result": "skip", ? (re) |
|
544 | "result": "skip", ? (re) | |
543 | "start": "\s*[\d\.]{4,5}", ? (re) |
|
545 | "start": "\s*[\d\.]{4,5}", ? (re) | |
@@ -546,6 +548,7 b' test for --json' | |||||
546 | "test-success.t": [\{] (re) |
|
548 | "test-success.t": [\{] (re) | |
547 | "csys": "\s*[\d\.]{4,5}", ? (re) |
|
549 | "csys": "\s*[\d\.]{4,5}", ? (re) | |
548 | "cuser": "\s*[\d\.]{4,5}", ? (re) |
|
550 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |
|
551 | "diff": "", ? (re) | |||
549 | "end": "\s*[\d\.]{4,5}", ? (re) |
|
552 | "end": "\s*[\d\.]{4,5}", ? (re) | |
550 | "result": "success", ? (re) |
|
553 | "result": "success", ? (re) | |
551 | "start": "\s*[\d\.]{4,5}", ? (re) |
|
554 | "start": "\s*[\d\.]{4,5}", ? (re) | |
@@ -575,6 +578,7 b' Test that failed test accepted through i' | |||||
575 | "test-failure.t": [\{] (re) |
|
578 | "test-failure.t": [\{] (re) | |
576 | "csys": "\s*[\d\.]{4,5}", ? (re) |
|
579 | "csys": "\s*[\d\.]{4,5}", ? (re) | |
577 | "cuser": "\s*[\d\.]{4,5}", ? (re) |
|
580 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |
|
581 | "diff": "", ? (re) | |||
578 | "end": "\s*[\d\.]{4,5}", ? (re) |
|
582 | "end": "\s*[\d\.]{4,5}", ? (re) | |
579 | "result": "success", ? (re) |
|
583 | "result": "success", ? (re) | |
580 | "start": "\s*[\d\.]{4,5}", ? (re) |
|
584 | "start": "\s*[\d\.]{4,5}", ? (re) | |
@@ -583,6 +587,7 b' Test that failed test accepted through i' | |||||
583 | "test-skip.t": { |
|
587 | "test-skip.t": { | |
584 | "csys": "\s*[\d\.]{4,5}", ? (re) |
|
588 | "csys": "\s*[\d\.]{4,5}", ? (re) | |
585 | "cuser": "\s*[\d\.]{4,5}", ? (re) |
|
589 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |
|
590 | "diff": "", ? (re) | |||
586 | "end": "\s*[\d\.]{4,5}", ? (re) |
|
591 | "end": "\s*[\d\.]{4,5}", ? (re) | |
587 | "result": "skip", ? (re) |
|
592 | "result": "skip", ? (re) | |
588 | "start": "\s*[\d\.]{4,5}", ? (re) |
|
593 | "start": "\s*[\d\.]{4,5}", ? (re) | |
@@ -591,6 +596,7 b' Test that failed test accepted through i' | |||||
591 | "test-success.t": [\{] (re) |
|
596 | "test-success.t": [\{] (re) | |
592 | "csys": "\s*[\d\.]{4,5}", ? (re) |
|
597 | "csys": "\s*[\d\.]{4,5}", ? (re) | |
593 | "cuser": "\s*[\d\.]{4,5}", ? (re) |
|
598 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |
|
599 | "diff": "", ? (re) | |||
594 | "end": "\s*[\d\.]{4,5}", ? (re) |
|
600 | "end": "\s*[\d\.]{4,5}", ? (re) | |
595 | "result": "success", ? (re) |
|
601 | "result": "success", ? (re) | |
596 | "start": "\s*[\d\.]{4,5}", ? (re) |
|
602 | "start": "\s*[\d\.]{4,5}", ? (re) |
General Comments 0
You need to be logged in to leave comments.
Login now