summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-01-22 11:11:30 -0800
committerGitHub <noreply@github.com>2018-01-22 11:11:30 -0800
commit256d12a38d9846ffb3ab859a5de360d94f276ba1 (patch)
treeca65cc562c12729ef1d0648fad3099559ec32f61 /netci.groovy
parentecfe848cf1edb218f9b635e41693eae43fd076b6 (diff)
parent13b6b8f628a6be3c5890d739549c31f67db4580d (diff)
downloadcoreclr-256d12a38d9846ffb3ab859a5de360d94f276ba1.tar.gz
coreclr-256d12a38d9846ffb3ab859a5de360d94f276ba1.tar.bz2
coreclr-256d12a38d9846ffb3ab859a5de360d94f276ba1.zip
Merge pull request #15944 from BruceForstall/CorefxTestUseCorrectVersion
For corefx testing, use a matching corefx repo version git hash
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy15
1 files changed, 14 insertions, 1 deletions
diff --git a/netci.groovy b/netci.groovy
index 9979bcf0ab..ce8f9c0075 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -1645,7 +1645,12 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
}
if (enableCorefxTesting) {
- buildOpts += ' skiptests';
+ // We shouldn't need to build the tests. However, run-corefx-tests.py currently depends on having the restored corefx
+ // package available, to determine the correct corefx version git commit hash, and we need to build the tests before
+ // running "tests\\runtest.cmd GenerateLayoutOnly". So build the pri-0 tests to make this happen.
+ //
+ // buildOpts += ' skiptests';
+ buildOpts += " -priority=0"
} else {
buildOpts += " -priority=${priority}"
}
@@ -1743,6 +1748,10 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
runtestArguments = "${lowerConfiguration} ${arch} ${testOpts}"
if (enableCorefxTesting) {
+ // Generate the test layout because it restores the corefx package which allows run-corefx-tests.py
+ // to determine the correct matching corefx version git commit hash.
+ buildCommands += "tests\\runtest.cmd ${runtestArguments} GenerateLayoutOnly"
+
def workspaceRelativeFxRoot = "_/fx"
def absoluteFxRoot = "%WORKSPACE%\\_\\fx"
@@ -1911,6 +1920,10 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
// Build coreclr
buildCommands += "./build.sh verbose ${lowerConfiguration} ${architecture}"
+ // Generate the test layout, which restores the corefx package, and allows run-corefx-tests.py to determine the
+ // matching corefx version git commit hash.
+ buildCommands += "./build-test.sh ${architecture} ${lowerConfiguration} generatelayoutonly"
+
def scriptFileName = "\$WORKSPACE/set_stress_test_env.sh"
def envScriptCmds = envScriptCreate(os, scriptFileName)