commit | c05be24d2435d3e7c35cd8ae70642b327f7124ba | [log] [tgz] |
---|---|---|
author | Clement Faure <clement.faure@nxp.com> | Mon May 16 18:15:48 2022 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Tue May 17 13:58:19 2022 +0200 |
tree | dee69ff0c384a4c8c632d20e6c4dc65c985e3d0e | |
parent | a84db0971401e1cc03871e69d457f6b86947d61b [diff] |
xtest: create output dir before generating regression_8100 header files In some rare occurrence and with a lot of parallel jobs, the following compilation failure of xtest could happen: GEN out/xtest/regression_8100_ca_crt.h python3 ../../scripts/file_to_c.py --inf ../../cert/ca.crt --out out/xtest/regression_8100_ca_crt.h --name regression_8100_ca_crt Traceback (most recent call last): File "../../scripts/file_to_c.py", line 48, in <module> main() File "../../scripts/file_to_c.py", line 24, in main f = open(args.out, 'w') FileNotFoundError: [Errno 2] No such file or directory: 'out/xtest/regression_8100_ca_crt.h' make: *** [Makefile:226: out/xtest/regression_8100_ca_crt.h] Error 1 This is caused by the output directory `out/xtest/` not being created when generating the following header files with the `embed-file` macro: * regression_8100_ca_crt.h * regression_8100_mid_crt.h * regression_8100_my_crt.h * regression_8100_my_csr.h To avoid this issue, make sure the output directory is created before generating the header files. Fixes: 97d6e290 ("regression: add case 8102") Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers