diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-12 05:50:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 05:50:06 +0000 |
commit | 5b05878484434d0ea2b2723f128b25d9cdb7a52e (patch) | |
tree | f87347259e98eb7994eac7cd09a0b3869ac20500 | |
parent | b07f20850515786028229f5a4d51488e3ff30aec (diff) | |
parent | f83d7227c87a0293dc715fc4667a76b7479d627c (diff) | |
download | fork-ledger-5b05878484434d0ea2b2723f128b25d9cdb7a52e.tar.gz fork-ledger-5b05878484434d0ea2b2723f128b25d9cdb7a52e.tar.bz2 fork-ledger-5b05878484434d0ea2b2723f128b25d9cdb7a52e.zip |
Merge pull request #2316 from afh/improve-manual-testing
test: Accept test names as arguments
-rwxr-xr-x | test/RegressTests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py index 47abc3d0..1804d32e 100755 --- a/test/RegressTests.py +++ b/test/RegressTests.py @@ -27,6 +27,10 @@ args = parser.parse_args() multiproc &= (args.jobs >= 1) harness = LedgerHarness(args.ledger, args.sourcepath, args.verify, args.gmalloc, args.python) +match = re.match(r'(Baseline|Regress|Manual)Test_(.*)', str(args.tests)) +if match: + args.tests = pathlib.Path('test') / match.group(1).lower() / (match.group(2) + '.test') + if not args.tests.is_dir() and not args.tests.is_file(): print(f'{args.tests} is not a directory or file (cwd: {os.getcwd()})' , file=sys.stderr) |