From 61cb37ef9771dfc480c66da0375dcfb5e3c787d9 Mon Sep 17 00:00:00 2001 From: Jacek Blaszczynski Date: Sun, 22 Apr 2018 00:18:44 +0200 Subject: [PATCH] Fix unix test build by removing unnecessary 'managed_test_build' semafore file Fixes #17503 The error is caused by both: 1. Unnecessary usage of 'managed_test_build' semaphore file which is incorrectly set after /t:BatchRestorePackages build target and prevents managed test build which is invoked after semaphore alredy exists 2. Masked by the above error is a wrong condition in dirs.proj non-windows test build which was introduced by PR #17161 and which prevented unix build due to missing #17161 group build port to unix --- build-test.sh | 19 +++++-------------- tests/src/dirs.proj | 2 +- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/build-test.sh b/build-test.sh index 7cb4c02..3a4b30e 100755 --- a/build-test.sh +++ b/build-test.sh @@ -240,22 +240,13 @@ build_Tests() echo "Starting the Managed Tests Build..." - __ManagedTestBuiltMarker=${__TestBinDir}/managed_test_build + build_Tests_internal "Tests_Managed" "$__ProjectDir/tests/build.proj" "$__up" "Managed tests build (build tests)" - if [ ! -f $__ManagedTestBuiltMarker ]; then - - build_Tests_internal "Tests_Managed" "$__ProjectDir/tests/build.proj" "$__up" "Managed tests build (build tests)" - - if [ $? -ne 0 ]; then - echo "${__MsgPrefix}Error: build failed. Refer to the build log files for details (above)" - exit 1 - else - echo "Tests have been built." - echo "Create marker \"${__ManagedTestBuiltMarker}\"" - touch $__ManagedTestBuiltMarker - fi + if [ $? -ne 0 ]; then + echo "${__MsgPrefix}Error: build failed. Refer to the build log files for details (above)" + exit 1 else - echo "Managed Tests had been built before." + echo "Managed tests build success!" fi if [ $__BuildTestWrappers -ne -0 ]; then diff --git a/tests/src/dirs.proj b/tests/src/dirs.proj index b6f9f6d..f7d1aad 100644 --- a/tests/src/dirs.proj +++ b/tests/src/dirs.proj @@ -34,7 +34,7 @@ - + OSGroup=$(OSGroup) -- 2.7.4