From 35eeef55a19d66c67d9f534d1f3bb11157340044 Mon Sep 17 00:00:00 2001 From: Qinghao Shi Date: Sun, 19 May 2019 00:31:39 +0100 Subject: [PATCH] fix a bug where base_path was wrong --- tools/test/examples/examples_lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test/examples/examples_lib.py b/tools/test/examples/examples_lib.py index cf0e0bb1fb..ee0a421f23 100644 --- a/tools/test/examples/examples_lib.py +++ b/tools/test/examples/examples_lib.py @@ -373,6 +373,7 @@ def compile_repos(config, toolchains, targets, profile, verbose, examples): results = {} test_json = {"builds":{}} valid_examples = set(examples) + base_path = os.getcwd() print("\nCompiling example repos....\n") for example in config['examples']: example_names = [basename(x['repo']) for x in get_repo_list(example)] @@ -430,7 +431,7 @@ def compile_repos(config, toolchains, targets, profile, verbose, examples): test_json['builds'][test_group] = { "platform":target , "toolchain": toolchain , - "base_path": os.getcwd() , + "base_path": base_path , "baud_rate": int(example['baud_rate']), "tests":{} } test_json['builds'][test_group]['tests'][name]={"binaries":image_info}