From 6b1967ed337932746938dd3ecd5f69ef3b9497d3 Mon Sep 17 00:00:00 2001 From: Chris Pepper Date: Wed, 3 Oct 2018 03:36:18 +0100 Subject: [PATCH] Add back in the Env backup restore around each platforms tests (#11980) --- buildroot/share/tests/start_tests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildroot/share/tests/start_tests b/buildroot/share/tests/start_tests index 07b0720f2e..775fb47f2c 100755 --- a/buildroot/share/tests/start_tests +++ b/buildroot/share/tests/start_tests @@ -18,7 +18,6 @@ exec_test () { } export -f exec_test -env_backup printf "Running \033[0;32m$2\033[0m Tests\n" if [[ $3 = "--deep-clean" ]]; then @@ -30,14 +29,17 @@ if [[ $2 = "ALL" ]]; then dir_list=("$(dirname "${BASH_SOURCE[0]}")"/*) declare -a tests=(${dir_list[@]/*start_tests/}) for f in "${tests[@]}"; do + env_backup testenv=$(basename $f | cut -d"_" -f1) printf "Running \033[0;32m$f\033[0m Tests\n" exec_test $1 "$testenv --target clean" "Setup Build Environment" $f $1 $testenv + env_restore done else + env_backup exec_test $1 "$2 --target clean" "Setup Build Environment" $2_tests $1 $2 + env_restore fi printf "\033[0;32mAll tests completed successfully\033[0m\n" -env_restore