Skip to content

Commit 35eeef5

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
fix a bug where base_path was wrong
1 parent 3bb0a8a commit 35eeef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/test/examples/examples_lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ def compile_repos(config, toolchains, targets, profile, verbose, examples):
373373
results = {}
374374
test_json = {"builds":{}}
375375
valid_examples = set(examples)
376+
base_path = os.getcwd()
376377
print("\nCompiling example repos....\n")
377378
for example in config['examples']:
378379
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):
430431
test_json['builds'][test_group] = {
431432
"platform":target ,
432433
"toolchain": toolchain ,
433-
"base_path": os.getcwd() ,
434+
"base_path": base_path ,
434435
"baud_rate": int(example['baud_rate']),
435436
"tests":{} }
436437
test_json['builds'][test_group]['tests'][name]={"binaries":image_info}

0 commit comments

Comments
 (0)