From aecc642594245cdd069d547e83256ad92dbfcde2 Mon Sep 17 00:00:00 2001 From: Tomer Yogev Date: Tue, 26 Mar 2019 17:32:30 +0200 Subject: [PATCH] recursive search for target test files in test summary python script --- auto/unity_test_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/unity_test_summary.py b/auto/unity_test_summary.py index 4c20e52..00c0da8 100644 --- a/auto/unity_test_summary.py +++ b/auto/unity_test_summary.py @@ -121,7 +121,7 @@ if __name__ == '__main__': targets_dir = sys.argv[1] else: targets_dir = './' - targets = list(map(lambda x: x.replace('\\', '/'), glob(targets_dir + '*.test*'))) + targets = list(map(lambda x: x.replace('\\', '/'), glob(targets_dir + '**/*.test*', recursive=True))) if len(targets) == 0: raise Exception("No *.testpass or *.testfail files found in '%s'" % targets_dir) uts.set_targets(targets)