mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 12:55:12 +00:00
Keep local clone around even if the test succeeds
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
eda2fb9583
commit
bd66d184ff
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -49,6 +49,9 @@ massif-*
|
||||||
# Generated documentation:
|
# Generated documentation:
|
||||||
/apidoc
|
/apidoc
|
||||||
|
|
||||||
|
# PSA Crypto compliance test repo, cloned by test_psa_complaince.py
|
||||||
|
/psa-arch-tests
|
||||||
|
|
||||||
# Editor navigation files:
|
# Editor navigation files:
|
||||||
/GPATH
|
/GPATH
|
||||||
/GRTAGS
|
/GRTAGS
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""Run the PSA Cryto API compliance test suite.
|
"""Run the PSA Cryto API compliance test suite.
|
||||||
Clone the repo and check out the commit specified by PSA_ARCH_TEST_REPO and PSA_ARCH_TEST_REF,
|
Clone the repo and check out the commit specified by PSA_ARCH_TEST_REPO and PSA_ARCH_TEST_REF,
|
||||||
then complie and run the test suite.
|
then complie and run the test suite. The clone is stored at <Mbed TLS root>/psa-arch-tests.
|
||||||
Known defects in either the test suite or mbedtls - identified by their test number - are ignored,
|
Known defects in either the test suite or mbedtls - identified by their test number - are ignored,
|
||||||
while unexpected failures AND successes are reported as errors,
|
while unexpected failures AND successes are reported as errors,
|
||||||
to help keep the list of known defects as up to date as possible.
|
to help keep the list of known defects as up to date as possible.
|
||||||
|
@ -46,6 +46,7 @@ def main():
|
||||||
try:
|
try:
|
||||||
os.chdir(psa_arch_tests_dir)
|
os.chdir(psa_arch_tests_dir)
|
||||||
|
|
||||||
|
# Reuse existing local clone
|
||||||
subprocess.check_call(['git', 'init'])
|
subprocess.check_call(['git', 'init'])
|
||||||
subprocess.check_call(['git', 'fetch', PSA_ARCH_TESTS_REPO, PSA_ARCH_TESTS_REF])
|
subprocess.check_call(['git', 'fetch', PSA_ARCH_TESTS_REPO, PSA_ARCH_TESTS_REF])
|
||||||
subprocess.check_call(['git', 'checkout', 'FETCH_HEAD'])
|
subprocess.check_call(['git', 'checkout', 'FETCH_HEAD'])
|
||||||
|
@ -117,7 +118,6 @@ def main():
|
||||||
print('FAILED')
|
print('FAILED')
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
shutil.rmtree(psa_arch_tests_dir)
|
|
||||||
print('SUCCESS')
|
print('SUCCESS')
|
||||||
return 0
|
return 0
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue