Commit bbfe530
implement test_might_fail using a refactored test_must_fail
Add an (optional) first parameter "ok=<special case>" to test_must_fail
and return success for "<special case>". Add "success" as
"<special case>" and use it to implement "test_might_fail". This removes
redundancies in test-lib-function.sh.
You can pass multiple <special case> arguments divided by comma (e.g.
"test_must_fail ok=success,something")
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Jeff King <peff@peff.net>1 parent 0c83680 commit bbfe530
1 file changed
Lines changed: 33 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
572 | 587 | | |
573 | 588 | | |
574 | 589 | | |
| |||
582 | 597 | | |
583 | 598 | | |
584 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
585 | 609 | | |
586 | 610 | | |
587 | | - | |
| 611 | + | |
| 612 | + | |
588 | 613 | | |
589 | 614 | | |
590 | | - | |
| 615 | + | |
| 616 | + | |
591 | 617 | | |
592 | 618 | | |
593 | | - | |
| 619 | + | |
| 620 | + | |
594 | 621 | | |
595 | 622 | | |
596 | | - | |
| 623 | + | |
| 624 | + | |
597 | 625 | | |
598 | 626 | | |
599 | 627 | | |
| |||
612 | 640 | | |
613 | 641 | | |
614 | 642 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 643 | + | |
625 | 644 | | |
626 | 645 | | |
627 | 646 | | |
| |||
0 commit comments