Work around cmd command length limit in xunit Exec task (#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)
commitad4df07bf2ea70334ada357d1240099e61b1d170
tree5844cc8e92b15a9b8a9a2ac423871715dc7f5a32
parent40286fc32e89c9eeda8b97d74cf0fb887469298b
Work around cmd command length limit in xunit Exec task (#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.
tests/src/dir.props
tests/tests.targets