Restore MBEDTLS_TEST_OUTCOME_FILE after test_default_out_of_box
Since components run in the main process, unsetting MBEDTLS_TEST_OUTCOME_FILE unset it in subsequent components as well. To avoid this, save and restore the value. (Making each component run in a subshell would be a better solution, but it would be a much bigger change.)
This commit is contained in:
parent
0d8b86a131
commit
717cd76e8a
1 changed files with 4 additions and 0 deletions
|
@ -667,6 +667,7 @@ component_test_default_out_of_box () {
|
||||||
msg "build: make, default config (out-of-box)" # ~1min
|
msg "build: make, default config (out-of-box)" # ~1min
|
||||||
make
|
make
|
||||||
# Disable fancy stuff
|
# Disable fancy stuff
|
||||||
|
SAVE_MBEDTLS_TEST_OUTCOME_FILE="$MBEDTLS_TEST_OUTCOME_FILE"
|
||||||
unset MBEDTLS_TEST_OUTCOME_FILE
|
unset MBEDTLS_TEST_OUTCOME_FILE
|
||||||
|
|
||||||
msg "test: main suites make, default config (out-of-box)" # ~10s
|
msg "test: main suites make, default config (out-of-box)" # ~10s
|
||||||
|
@ -674,6 +675,9 @@ component_test_default_out_of_box () {
|
||||||
|
|
||||||
msg "selftest: make, default config (out-of-box)" # ~10s
|
msg "selftest: make, default config (out-of-box)" # ~10s
|
||||||
programs/test/selftest
|
programs/test/selftest
|
||||||
|
|
||||||
|
export MBEDTLS_TEST_OUTCOME_FILE="$SAVE_MBEDTLS_TEST_OUTCOME_FILE"
|
||||||
|
unset SAVE_MBEDTLS_TEST_OUTCOME_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_default_cmake_gcc_asan () {
|
component_test_default_cmake_gcc_asan () {
|
||||||
|
|
Loading…
Reference in a new issue