summaryrefslogtreecommitdiff
path: root/Test/runTests.py
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-28 18:07:23 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-28 18:07:23 -0700
commitfe6ba192bd4430f27e4379c584fbc082bf49be18 (patch)
treedeba25e84b3ff9bd5e5c63619368267d3c016927 /Test/runTests.py
parent1258fd132d80cfdba5e59cfd76c517a091269d2d (diff)
parent3cfa0049262a9d547f061937d5c452afb2033401 (diff)
Merge
Diffstat (limited to 'Test/runTests.py')
-rw-r--r--Test/runTests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/runTests.py b/Test/runTests.py
index f9443426..fc9c20e7 100644
--- a/Test/runTests.py
+++ b/Test/runTests.py
@@ -367,7 +367,7 @@ def read_one_test(name, fname, compiler_cmds, timeout):
debug(Debug.INFO, "Test file {} has no RUN specification".format(fname))
-def find_one(name, fname, compiler_cmds, timeout):
+def find_one(name, fname, compiler_cmds, timeout, allow_lst=False):
name, ext = os.path.splitext(fname)
if ext == ".dfy":
if os.path.exists(fname):
@@ -375,7 +375,7 @@ def find_one(name, fname, compiler_cmds, timeout):
yield from read_one_test(name, fname, compiler_cmds, timeout)
else:
debug(Debug.ERROR, "Test file {} not found".format(fname))
- elif ext == ".lst":
+ elif ext == ".lst" and allow_lst: #lst files are only read if explicitly listed on the CLI
debug(Debug.INFO, "Loading tests from {}".format(fname))
with open(fname) as reader:
for line in reader:
@@ -394,7 +394,7 @@ def find_tests(paths, compiler_cmds, excluded, timeout):
for fname in fnames:
yield from find_one(fname, os.path.join(base, fname), compiler_cmds, timeout)
else:
- yield from find_one(path, path, compiler_cmds, timeout)
+ yield from find_one(path, path, compiler_cmds, timeout, True)
def run_tests(args):