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