From d98f6c76e7ce138775cee705a0acceb3b170a369 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Thu, 11 Jul 2019 18:02:32 +0530 Subject: [PATCH] run: Allow tests in subdirectories With this patch it is now possible to have subdirectories with tests under the main test directory. This shall help tests become more organized. --- run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index f9907bf54..01ee8bc30 100755 --- a/run.py +++ b/run.py @@ -803,8 +803,11 @@ def main(): if dirpath == tdir: continue - # We only want to go one level deep. - dirnames[0:] = [] + # Check if there are sub-test directories + if "test.yaml" in filenames or "check.sh" in filenames: + dirnames[0:] = [] + else: + continue if not args.patterns: tests.append(dirpath) -- 2.47.2