From 464b3d814ea9568fcc74613531701705acaf8390 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Fri, 5 Mar 2021 11:54:11 +0100 Subject: [PATCH] CI: Use temporary git configs in the tests --- tools/ci/test_build_system_cmake.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh index 8c9032a15d..483cecf835 100755 --- a/tools/ci/test_build_system_cmake.sh +++ b/tools/ci/test_build_system_cmake.sh @@ -148,9 +148,9 @@ function run_tests() print_status "Project is in ESP-IDF which has a custom tag" pushd ${IDF_PATH}/examples/get-started/hello_world - git config user.email "noone@espressif.com" - git config user.name "No One" - git tag mytag -a -m "mytag" + git config -f test.conf user.email "noone@espressif.com" + git config -f test.conf user.name "No One" + GIT_CONFIG=test.conf git tag mytag -a -m "mytag" idf.py reconfigure &> log.log || failure "Failed to build" str="App \"hello-world\" version: mytag" grep "${str}" log.log || { cat log.log ; failure "Project version should be the custom tag"; } @@ -159,7 +159,7 @@ function run_tests() failure "IDF version $idf_version should not contain mytag" fi git tag -d mytag - rm -rf sdkconfig build + rm -rf sdkconfig build test.conf popd print_status "Moving BUILD_DIR_BASE out of tree"