Skip to content

Commit 3696456

Browse files
committed
Review: Update example_lib.py to use rmtree rather than rm system call.
Update examples.json to limit TLS examples to a couple of boards and only GCC_ARM and ARM compilers.
1 parent bbfa954 commit 3696456

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tools/test/examples/examples.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-tls-authcrypt"
2222
],
2323
"features" : [],
24-
"targets" : [],
25-
"toolchains" : [],
24+
"targets" : ["K64F", "NUCLEO_F429ZI"],
25+
"toolchains" : ["GCC_ARM", "ARM"],
2626
"auto-update" : true
2727
},
2828
{

tools/test/examples/examples_lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import os.path
1010
import sys
1111
import subprocess
12+
from shutil import rmtree
1213

1314
ROOT = abspath(dirname(dirname(dirname(dirname(__file__)))))
1415
sys.path.insert(0, ROOT)
@@ -116,7 +117,7 @@ def source_repos(config):
116117
name = basename(repo)
117118
if os.path.exists(name):
118119
print("'%s' example directory already exists. Deleting..." % name)
119-
subprocess.call(['rm', '-rf', name])
120+
rmtree(name)
120121

121122
subprocess.call(["mbed-cli", "import", repo])
122123

0 commit comments

Comments
 (0)