fix a bug where base_path was wrong

pull/10521/head
Qinghao Shi 2019-05-19 00:31:39 +01:00
parent 3bb0a8aded
commit 35eeef55a1
1 changed files with 2 additions and 1 deletions

View File

@ -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}