mirror of https://github.com/ARMmbed/mbed-os.git
TEST: fix a bug on example scripts
parent
411ea55716
commit
c391accc1b
|
@ -459,9 +459,8 @@ def update_example_version(config, tag, exp_filter):
|
||||||
"""
|
"""
|
||||||
print("\nUpdating example to version(branch) '%s'\n" % tag)
|
print("\nUpdating example to version(branch) '%s'\n" % tag)
|
||||||
for example in config['examples']:
|
for example in config['examples']:
|
||||||
if example['name'] not in exp_filter:
|
name = example['name']
|
||||||
continue
|
if name in exp_filter:
|
||||||
for name in get_sub_examples_list(example):
|
|
||||||
os.chdir(name)
|
os.chdir(name)
|
||||||
logging.info("In folder '%s'" % name)
|
logging.info("In folder '%s'" % name)
|
||||||
cmd = "git checkout -B %s origin/%s" %(tag, tag)
|
cmd = "git checkout -B %s origin/%s" %(tag, tag)
|
||||||
|
|
Loading…
Reference in New Issue