Make directory creation code more compact

Signed-off-by: Bence Szépkúti <[email protected]>
This commit is contained in:
Bence Szépkúti
2021-11-10 14:56:35 +01:00
parent c2ca135f82
commit eda2fb9583
+1 -4
View File
@@ -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)