Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ellis <matell@microsoft.com>2015-08-07 00:16:50 +0300
committerMatt Ellis <matell@microsoft.com>2015-08-07 00:26:11 +0300
commitcc19cacdb730cbe9bcdb0c75467942153b9a314a (patch)
treee047fc85540dcf6f02ddaa054bf06d2de11d08c2 /run-test.sh
parent4c423dc3300809d87051e088c5461e0bd8de833e (diff)
Remove mscorlib.ni.dll before running tests
The test layout folder that is created when we run tests includes an mscorlib native image. This native image is specific to windows (since we use the windows version of the runtime when building a test layout, even when building a test layout for Linux or OSX) and the runtime will not boot if it is present. When we run tests from CI, we instruct Jenkins to not copy native images, but if you are running tests by hand you need to either make sure you don't copy native images over or remove them before running tests. With more folks wanting to use run-test.sh by hand, we should just make run-test.sh responsible for cleaning up these native images. Fixes #2605
Diffstat (limited to 'run-test.sh')
-rwxr-xr-xrun-test.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/run-test.sh b/run-test.sh
index 72ae173a40..9d390fde64 100755
--- a/run-test.sh
+++ b/run-test.sh
@@ -190,9 +190,17 @@ runtest()
copy_test_overlay $dirName
+ pushd $dirName > /dev/null
+
+ # Remove the mscorlib native image, since our current test layout build process
+ # uses a windows runtime and so we include the windows native image for mscorlib
+ if [ -e mscorlib.ni.dll ]
+ then
+ rm mscorlib.ni.dll
+ fi
+
# Invoke xunit
- pushd $dirName > /dev/null
echo
echo "Running tests in $dirName"
echo "./corerun xunit.console.netcore.exe $testDllName -xml testResults.xml -notrait category=failing -notrait category=OuterLoop -notrait category=$xunitOSCategory"