mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-23 15:01:00 +03:00
Make directory creation code more compact
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
@ -42,10 +42,7 @@ def main():
|
|||||||
subprocess.check_call(['make', '-C', 'library', 'libmbedcrypto.a'])
|
subprocess.check_call(['make', '-C', 'library', 'libmbedcrypto.a'])
|
||||||
|
|
||||||
psa_arch_tests_dir = 'psa-arch-tests'
|
psa_arch_tests_dir = 'psa-arch-tests'
|
||||||
try:
|
os.makedirs(psa_arch_tests_dir, exist_ok=True)
|
||||||
os.mkdir(psa_arch_tests_dir)
|
|
||||||
except FileExistsError:
|
|
||||||
pass
|
|
||||||
try:
|
try:
|
||||||
os.chdir(psa_arch_tests_dir)
|
os.chdir(psa_arch_tests_dir)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user