Work around apparent bug in CMD's FOR /L
authorRuss Keldorph <Russ.Keldorph@microsoft.com>
Wed, 5 Dec 2018 23:58:32 +0000 (15:58 -0800)
committerRuss Keldorph <russ.keldorph@microsoft.com>
Thu, 6 Dec 2018 19:08:16 +0000 (11:08 -0800)
commite7ea2cb8c9dfaae4bebed74719852ed18c1e10d8
treefdaad7f8706ead1fafde2dd749c8f81a336774de
parent3d41ee449aff1146de235a9d04c6d9431f5054a7
Work around apparent bug in CMD's FOR /L

Hopefully this will mean that official build failures during the actual build
phase will correctly be reported as failures.  There could be other places that
need to change, but this is all we know of right now.

Fixes dotnet/coreclr#18788 (at least part of it)

Commit migrated from https://github.com/dotnet/coreclr/commit/1c8dd79c74e8021f5e2fb9c05116e69848470c87
src/coreclr/build-test.cmd