From 717cd76e8a3b1464397df95397f8454ca89e85cf Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 27 Sep 2019 20:21:11 +0200 Subject: [PATCH] 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.) --- tests/scripts/all.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index f32086667..1ee4eb150 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -667,6 +667,7 @@ component_test_default_out_of_box () { msg "build: make, default config (out-of-box)" # ~1min make # Disable fancy stuff + SAVE_MBEDTLS_TEST_OUTCOME_FILE="$MBEDTLS_TEST_OUTCOME_FILE" unset MBEDTLS_TEST_OUTCOME_FILE 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 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 () {