Show More
@@ -120,7 +120,7 b' if pygmentspresent:' | |||
|
120 | 120 | } |
|
121 | 121 | |
|
122 | 122 | class TestRunnerLexer(lexer.RegexLexer): |
|
123 |
testpattern = r'[\w-]+\.(t|py)(#[ |
|
|
123 | testpattern = r'[\w-]+\.(t|py)(#[a-zA-Z0-9_\-\.]+)?' | |
|
124 | 124 | tokens = { |
|
125 | 125 | 'root': [ |
|
126 | 126 | (r'^Skipped', token.Generic.Skipped, 'skipped'), |
@@ -2646,7 +2646,7 b' class TestRunner(object):' | |||
|
2646 | 2646 | expanded_args.append(arg) |
|
2647 | 2647 | args = expanded_args |
|
2648 | 2648 | |
|
2649 |
testcasepattern = re.compile(br'([\w-]+\.t|py)(#([ |
|
|
2649 | testcasepattern = re.compile(br'([\w-]+\.t|py)(#([a-zA-Z0-9_\-\.]+))') | |
|
2650 | 2650 | tests = [] |
|
2651 | 2651 | for t in args: |
|
2652 | 2652 | case = None |
@@ -1643,13 +1643,13 b' Support ignoring invalid test cases' | |||
|
1643 | 1643 | Support running complex test cases names |
|
1644 | 1644 | |
|
1645 | 1645 | $ cat > test-cases-advanced-cases.t <<'EOF' |
|
1646 |
> #testcases simple case-with-dashes casewith |
|
|
1646 | > #testcases simple case-with-dashes casewith_-.chars | |
|
1647 | 1647 | > $ echo $TESTCASE |
|
1648 | 1648 | > simple |
|
1649 | 1649 | > EOF |
|
1650 | 1650 | |
|
1651 | 1651 | $ cat test-cases-advanced-cases.t |
|
1652 |
#testcases simple case-with-dashes casewith |
|
|
1652 | #testcases simple case-with-dashes casewith_-.chars | |
|
1653 | 1653 | $ echo $TESTCASE |
|
1654 | 1654 | simple |
|
1655 | 1655 | |
@@ -1658,7 +1658,7 b' Support running complex test cases names' | |||
|
1658 | 1658 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1659 | 1659 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t.case-with-dashes.err |
|
1660 | 1660 | @@ -1,3 +1,3 @@ |
|
1661 |
#testcases simple case-with-dashes casewith |
|
|
1661 | #testcases simple case-with-dashes casewith_-.chars | |
|
1662 | 1662 | $ echo $TESTCASE |
|
1663 | 1663 | - simple |
|
1664 | 1664 | + case-with-dashes |
@@ -1666,17 +1666,17 b' Support running complex test cases names' | |||
|
1666 | 1666 | ERROR: test-cases-advanced-cases.t#case-with-dashes output changed |
|
1667 | 1667 | ! |
|
1668 | 1668 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1669 |
+++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t.casewith |
|
|
1669 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t.casewith_-.chars.err | |
|
1670 | 1670 | @@ -1,3 +1,3 @@ |
|
1671 |
#testcases simple case-with-dashes casewith |
|
|
1671 | #testcases simple case-with-dashes casewith_-.chars | |
|
1672 | 1672 | $ echo $TESTCASE |
|
1673 | 1673 | - simple |
|
1674 |
+ casewith |
|
|
1674 | + casewith_-.chars | |
|
1675 | 1675 | |
|
1676 |
ERROR: test-cases-advanced-cases.t#casewith |
|
|
1676 | ERROR: test-cases-advanced-cases.t#casewith_-.chars output changed | |
|
1677 | 1677 | !. |
|
1678 | 1678 | Failed test-cases-advanced-cases.t#case-with-dashes: output changed |
|
1679 |
Failed test-cases-advanced-cases.t#casewith |
|
|
1679 | Failed test-cases-advanced-cases.t#casewith_-.chars: output changed | |
|
1680 | 1680 | # Ran 3 tests, 0 skipped, 2 failed. |
|
1681 | 1681 | python hash seed: * (glob) |
|
1682 | 1682 | [1] |
@@ -1686,7 +1686,7 b' Support running complex test cases names' | |||
|
1686 | 1686 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1687 | 1687 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t.case-with-dashes.err |
|
1688 | 1688 | @@ -1,3 +1,3 @@ |
|
1689 |
#testcases simple case-with-dashes casewith |
|
|
1689 | #testcases simple case-with-dashes casewith_-.chars | |
|
1690 | 1690 | $ echo $TESTCASE |
|
1691 | 1691 | - simple |
|
1692 | 1692 | + case-with-dashes |
@@ -1698,19 +1698,19 b' Support running complex test cases names' | |||
|
1698 | 1698 | python hash seed: * (glob) |
|
1699 | 1699 | [1] |
|
1700 | 1700 | |
|
1701 |
$ rt "test-cases-advanced-cases.t#casewith |
|
|
1701 | $ rt "test-cases-advanced-cases.t#casewith_-.chars" | |
|
1702 | 1702 | |
|
1703 | 1703 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1704 |
+++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t.casewith |
|
|
1704 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t.casewith_-.chars.err | |
|
1705 | 1705 | @@ -1,3 +1,3 @@ |
|
1706 |
#testcases simple case-with-dashes casewith |
|
|
1706 | #testcases simple case-with-dashes casewith_-.chars | |
|
1707 | 1707 | $ echo $TESTCASE |
|
1708 | 1708 | - simple |
|
1709 |
+ casewith |
|
|
1709 | + casewith_-.chars | |
|
1710 | 1710 | |
|
1711 |
ERROR: test-cases-advanced-cases.t#casewith |
|
|
1711 | ERROR: test-cases-advanced-cases.t#casewith_-.chars output changed | |
|
1712 | 1712 | ! |
|
1713 |
Failed test-cases-advanced-cases.t#casewith |
|
|
1713 | Failed test-cases-advanced-cases.t#casewith_-.chars: output changed | |
|
1714 | 1714 | # Ran 1 tests, 0 skipped, 1 failed. |
|
1715 | 1715 | python hash seed: * (glob) |
|
1716 | 1716 | [1] |
General Comments 0
You need to be logged in to leave comments.
Login now