Mercurial > hg
comparison tests/test-run-tests.t @ 52221:00cdec2398ee stable
run-tests: cleanup the "output" directory after the related tests
The output confused the test discovery when left around. And it confuse the
Linux and the Windows one a bit differently, so we better clean it up as it
serve not purpose to keep it around.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 11 Nov 2024 05:42:44 +0100 |
parents | 7a149cf41398 |
children |
comparison
equal
deleted
inserted
replaced
52220:7a149cf41398 | 52221:00cdec2398ee |
---|---|
1760 !. | 1760 !. |
1761 Failed test-cases-abc.t#B: output changed | 1761 Failed test-cases-abc.t#B: output changed |
1762 # Ran 2 tests, 0 skipped, 1 failed. | 1762 # Ran 2 tests, 0 skipped, 1 failed. |
1763 python hash seed: * (glob) | 1763 python hash seed: * (glob) |
1764 [1] | 1764 [1] |
1765 $ rm output/* | |
1765 | 1766 |
1766 Test TESTCASE variable | 1767 Test TESTCASE variable |
1767 | 1768 |
1768 $ cat > test-cases-ab.t <<'EOF' | 1769 $ cat > test-cases-ab.t <<'EOF' |
1769 > $ dostuff() { | 1770 > $ dostuff() { |
2106 $ rt --shard-index 10 --shard-total 5 | 2107 $ rt --shard-index 10 --shard-total 5 |
2107 usage: run-tests.py [options] [tests] | 2108 usage: run-tests.py [options] [tests] |
2108 run-tests.py: error: --shard-index must be <= than --shard-total (10 not in [1,5]) | 2109 run-tests.py: error: --shard-index must be <= than --shard-total (10 not in [1,5]) |
2109 [2] | 2110 [2] |
2110 $ rt --list-tests --shard-index 1 --shard-total 5 | 2111 $ rt --list-tests --shard-index 1 --shard-total 5 |
2111 test-cases-abc.t | 2112 test-cases-abc.t#A |
2112 test-cases-advanced-cases.t#case-with-dashes | 2113 test-cases-advanced-cases.t#casewith_-.chars |
2113 test-conditional-matching.t#foo | 2114 test-config-opt.t |
2114 $ rt --shard-index 6 --shard-total 5 | 2115 $ rt --shard-index 6 --shard-total 5 |
2115 usage: run-tests.py [options] [tests] | 2116 usage: run-tests.py [options] [tests] |
2116 run-tests.py: error: --shard-index must be <= than --shard-total (6 not in [1,5]) | 2117 run-tests.py: error: --shard-index must be <= than --shard-total (6 not in [1,5]) |
2117 [2] | 2118 [2] |
2118 $ rt --list-tests --shard-index 5 --shard-total 5 | 2119 $ rt --list-tests --shard-index 5 --shard-total 5 |
2119 test-conditional-matching.t#bar | 2120 test-cases-advanced-cases.t#case-with-dashes |
2120 test-py.py | 2121 test-conditional-matching.t#foo |
2121 test-substitution.t |