Work around cmd command length limit in xunit Exec task (dotnet/coreclr#19095)
authorSven Boemer <sbomer@gmail.com>
Tue, 24 Jul 2018 15:22:31 +0000 (08:22 -0700)
committerJarret Shook <jashoo@microsoft.com>
Tue, 24 Jul 2018 15:22:31 +0000 (08:22 -0700)
commit2ec80eaa1988270a4dde679f48aa0e2a48cb8ee8
tree37b756310d400da32dfbfe410b096b88a514cc96
parent93e9db19accb64d59df8fd1f887d844e8404d7f3
Work around cmd command length limit in xunit Exec task (dotnet/coreclr#19095)

On Windows, the Exec task passes the command to cmd, so long commands
run into the command length limit (see
https://github.com/Microsoft/msbuild/issues/2530). This workaround
shortens the xunit command line by replacing the path to the test
binary directory with an environment variable.

Commit migrated from https://github.com/dotnet/coreclr/commit/ad4df07bf2ea70334ada357d1240099e61b1d170
src/coreclr/tests/src/dir.props
src/coreclr/tests/tests.targets