Update CheckProjects to not fail for non-dev CORE_ROOT
authorAndy Ayers <andya@microsoft.com>
Wed, 19 Apr 2017 21:07:24 +0000 (14:07 -0700)
committerAndy Ayers <andya@microsoft.com>
Wed, 19 Apr 2017 21:21:24 +0000 (14:21 -0700)
commit3ffc91331ac381d904638981563ace8a181c8b9b
treebdf6ff9cc741853ab4c7c0f66d623ebeddbde87b
parent785f35229394637386e6847b82e6591e99d2d6ab
Update CheckProjects to not fail for non-dev CORE_ROOT

CheckProjects expects to be able to find the jit test project files
relative to the value of the `CORE_ROOT` environment variable. This
fails when we have test setups like cross-tests or helix where the
test binary tree has been copied away from the repo after building.

Tolerate these cases by returning a success code if the `CORE_ROOT`
path is not pointing at the expected place.

Fixes dotnet/coreclr#11079.
Fixes dotnet/coreclr#10635.

Commit migrated from https://github.com/dotnet/coreclr/commit/6521f0772322420d9b9e8528e9c121131808749e
src/coreclr/tests/src/JIT/CheckProjects/CheckProjects.cs