Make directory creation code more compact
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
67fb3149c0
commit
c63d1605ab
1 changed files with 1 additions and 4 deletions
|
@ -42,10 +42,7 @@ def main():
|
|||
subprocess.check_call(['make', '-C', 'library', 'libmbedcrypto.a'])
|
||||
|
||||
psa_arch_tests_dir = 'psa-arch-tests'
|
||||
try:
|
||||
os.mkdir(psa_arch_tests_dir)
|
||||
except FileExistsError:
|
||||
pass
|
||||
os.makedirs(psa_arch_tests_dir, exist_ok=True)
|
||||
try:
|
||||
os.chdir(psa_arch_tests_dir)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue