summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/LedgerHarness.py4
-rwxr-xr-xtest/RegressTests.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py
index e2c96894..95d0fe45 100755
--- a/test/LedgerHarness.py
+++ b/test/LedgerHarness.py
@@ -55,10 +55,10 @@ class LedgerHarness:
def __init__(self, ledger, sourcepath, verify=False, gmalloc=False, python=False):
if not ledger.is_file():
- print("Cannot find ledger at '{ledger}'", file=sys.stderr)
+ print(f"Cannot find ledger at '{ledger}'", file=sys.stderr)
sys.exit(1)
if not sourcepath.is_dir():
- print("Cannot find source path at '{sourcepath}'", file=sys.stderr)
+ print(f"Cannot find source path at '{sourcepath}'", file=sys.stderr)
sys.exit(1)
self.ledger = ledger.resolve()
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)