Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 01d4bb6

Browse files
authored
Merge pull request #6091 from wtgodbe/buildfix
do all coreclr copying BEFORE building
2 parents 597e160 + a4a3df7 commit 01d4bb6

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

netci.groovy

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,25 +2067,27 @@ combinedScenarios.each { scenario ->
20672067
}
20682068

20692069
if (scenario == 'coverage') {
2070-
shell("./build.sh coverage verbose ${lowerConfiguration} ${architecture}")
2070+
2071+
// Move coreclr to clr directory
2072+
shell("rm -rf .clr; mkdir .clr; mv * .clr; mv .git .clr; mv .clr clr")
2073+
2074+
// Build coreclr
2075+
shell("./clr/build.sh coverage verbose ${lowerConfiguration} ${architecture}")
20712076

20722077
// Remove folders from obj that we don't expect to be covered. May update this later.
2073-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/ToolBox")
2074-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/debug")
2075-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/ilasm")
2076-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/ildasm")
2077-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/dlls/dbgshim")
2078-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/dlls/mscordac")
2079-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/dlls/mscordbi")
2078+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/ToolBox")
2079+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/debug")
2080+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/ilasm")
2081+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/ildasm")
2082+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/dlls/dbgshim")
2083+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/dlls/mscordac")
2084+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/dlls/mscordbi")
20802085

20812086
// Run PAL tests
2082-
shell("src/pal/tests/palsuite/runpaltests.sh \${WORKSPACE}/bin/obj/${osGroup}.${architecture}.${configuration} \${WORKSPACE}/bin/paltestout")
2087+
shell("./clr/src/pal/tests/palsuite/runpaltests.sh \$(pwd)/clr/bin/obj/${osGroup}.${architecture}.${configuration} \$(pwd)/clr/bin/paltestout")
20832088

20842089
// Remove obj files for PAL tests so they're not included in coverage results
2085-
shell("rm -rf ./bin/obj/Linux.x64.Release/src/pal/tests")
2086-
2087-
// Move coreclr to clr directory
2088-
shell("rm -rf .clr; mkdir .clr; mv * .clr; mv .git .clr; mv .clr clr")
2090+
shell("rm -rf ./clr/bin/obj/Linux.x64.Release/src/pal/tests")
20892091

20902092
// Unzip the tests first. Exit with 0
20912093
shell("unzip -q -o ./clr/bin/tests/tests.zip -d ./clr/bin/tests/Windows_NT.${architecture}.${configuration} || exit 0")

0 commit comments

Comments
 (0)