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.
--- a/tests/test-run-tests.t Mon Nov 11 11:13:34 2024 +0100
+++ b/tests/test-run-tests.t Mon Nov 11 05:42:44 2024 +0100
@@ -1762,6 +1762,7 @@
# Ran 2 tests, 0 skipped, 1 failed.
python hash seed: * (glob)
[1]
+ $ rm output/*
Test TESTCASE variable
@@ -2108,14 +2109,13 @@
run-tests.py: error: --shard-index must be <= than --shard-total (10 not in [1,5])
[2]
$ rt --list-tests --shard-index 1 --shard-total 5
- test-cases-abc.t
- test-cases-advanced-cases.t#case-with-dashes
- test-conditional-matching.t#foo
+ test-cases-abc.t#A
+ test-cases-advanced-cases.t#casewith_-.chars
+ test-config-opt.t
$ rt --shard-index 6 --shard-total 5
usage: run-tests.py [options] [tests]
run-tests.py: error: --shard-index must be <= than --shard-total (6 not in [1,5])
[2]
$ rt --list-tests --shard-index 5 --shard-total 5
- test-conditional-matching.t#bar
- test-py.py
- test-substitution.t
+ test-cases-advanced-cases.t#case-with-dashes
+ test-conditional-matching.t#foo