Show More
@@ -490,6 +490,46 b' test for --json' | |||||
490 | } |
|
490 | } | |
491 | } (no-eol) |
|
491 | } (no-eol) | |
492 |
|
492 | |||
|
493 | Test that failed test accepted through interactive are properly reported: | |||
|
494 | ||||
|
495 | $ cp test-failure.t backup | |||
|
496 | $ echo y | $TESTDIR/run-tests.py --with-hg=`which hg` --json -i | |||
|
497 | ||||
|
498 | --- $TESTTMP/test-failure.t | |||
|
499 | +++ $TESTTMP/test-failure.t.err | |||
|
500 | @@ -1,4 +1,4 @@ | |||
|
501 | $ echo babar | |||
|
502 | - rataxes | |||
|
503 | + babar | |||
|
504 | This is a noop statement so that | |||
|
505 | this test is still more bytes than success. | |||
|
506 | Accept this change? [n] ..s | |||
|
507 | Skipped test-skip.t: skipped | |||
|
508 | # Ran 2 tests, 1 skipped, 0 warned, 0 failed. | |||
|
509 | ||||
|
510 | $ cat report.json | |||
|
511 | testreport ={ | |||
|
512 | "test-failure.t": [\{] (re) | |||
|
513 | "csys": "\s*[\d\.]{4,5}", ? (re) | |||
|
514 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |||
|
515 | "result": "success", ? (re) | |||
|
516 | "time": "\s*[\d\.]{4,5}" (re) | |||
|
517 | }, ? (re) | |||
|
518 | "test-skip.t": { | |||
|
519 | "csys": "\s*[\d\.]{4,5}", ? (re) | |||
|
520 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |||
|
521 | "result": "skip", ? (re) | |||
|
522 | "time": "\s*[\d\.]{4,5}" (re) | |||
|
523 | }, ? (re) | |||
|
524 | "test-success.t": [\{] (re) | |||
|
525 | "csys": "\s*[\d\.]{4,5}", ? (re) | |||
|
526 | "cuser": "\s*[\d\.]{4,5}", ? (re) | |||
|
527 | "result": "success", ? (re) | |||
|
528 | "time": "\s*[\d\.]{4,5}" (re) | |||
|
529 | } | |||
|
530 | } (no-eol) | |||
|
531 | $ mv backup test-failure.t | |||
|
532 | ||||
493 | #endif |
|
533 | #endif | |
494 |
|
534 | |||
495 | backslash on end of line with glob matching is handled properly |
|
535 | backslash on end of line with glob matching is handled properly |
General Comments 0
You need to be logged in to leave comments.
Login now