From: Jacek Blaszczynski Date: Sat, 21 Apr 2018 22:18:44 +0000 (+0200) Subject: Fix unix test build by removing unnecessary 'managed_test_build' semafore file X-Git-Tag: accepted/tizen/unified/20190422.045933~2250^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61cb37ef9771dfc480c66da0375dcfb5e3c787d9;p=platform%2Fupstream%2Fcoreclr.git 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 --- 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)