TEST: fix a bug on example scripts

pull/13566/head
Qinghao Shi 2020-10-28 16:02:23 +00:00 committed by Hugues Kamba
parent 411ea55716
commit c391accc1b
1 changed files with 2 additions and 3 deletions

View File

@ -459,9 +459,8 @@ def update_example_version(config, tag, exp_filter):
"""
print("\nUpdating example to version(branch) '%s'\n" % tag)
for example in config['examples']:
if example['name'] not in exp_filter:
continue
for name in get_sub_examples_list(example):
name = example['name']
if name in exp_filter:
os.chdir(name)
logging.info("In folder '%s'" % name)
cmd = "git checkout -B %s origin/%s" %(tag, tag)