From 0b2ac0acfd69df3e39fc59b4a36a93a9f050f735 Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Fri, 19 Feb 2016 12:13:47 +0700 Subject: [PATCH] Made test_harness use only *.asm files --- pyasm/asm_tests/test_harness | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyasm/asm_tests/test_harness b/pyasm/asm_tests/test_harness index 7cee5c3..04657a9 100755 --- a/pyasm/asm_tests/test_harness +++ b/pyasm/asm_tests/test_harness @@ -13,7 +13,8 @@ If is specified run tests in that directory. If not specified the test directory is assumed to be './tests'. If is specified, run tests on files in the test subdirectory with -a filename of * . If is not specified all files are tested. +a filename of *.asm. If 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'"