From 5f5014ef429ca73a580886729ed590d27068b242 Mon Sep 17 00:00:00 2001 From: Jenny Plunkett Date: Fri, 1 Dec 2017 15:02:50 -0600 Subject: [PATCH] Added check for options.source_dir is none --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index 31d0f1d0b2..8e43274f62 100644 --- a/tools/test.py +++ b/tools/test.py @@ -144,7 +144,7 @@ if __name__ == '__main__': if not config: args_error(parser, "argument --test-config contains invalid path or identifier") elif not options.app_config: - config = TestConfig.get_default_config(options.source_dir, mcu) + config = TestConfig.get_default_config(options.source_dir or ['.'], mcu) else: config = options.app_config