1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Made test_harness use only *.asm files

This commit is contained in:
Ross Wilson
2016-02-19 12:13:47 +07:00
parent 90f2932998
commit 0b2ac0acfd

View File

@@ -13,7 +13,8 @@ If <directory> is specified run tests in that directory. If not specified
the test directory is assumed to be './tests'.
If <prefix> is specified, run tests on files in the test subdirectory with
a filename of <prefix>* . If <prefix> is not specified all files are tested.
a filename of <prefix>*.asm. If <prefix> is not specified all files with
filename like *.asm are tested.
"""
@@ -301,7 +302,7 @@ def run_tests(directory, prefix):
prefix = ''
# get list of all test cases we are going to run
files = glob.glob('%s/%s*' % (directory, prefix))
files = glob.glob('%s/%s*.asm' % (directory, prefix))
if not files:
if prefix:
error("No test files found in directory '%s' with prefix '%s'"