Fix libraries Windows test runner script (#88354)
authorBruce Forstall <brucefo@microsoft.com>
Tue, 4 Jul 2023 04:18:09 +0000 (21:18 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 04:18:09 +0000 (21:18 -0700)
commitdc9a09ab4eaa1a6e02ac3de55f770ec2e7e50d10
tree21e82fa5a1800d45333e161adcb0c55b688d0431
parentcd26e63274102c8130109c9ce1301851a550433c
Fix libraries Windows test runner script (#88354)

Having HAS_TEST_RESULTS unset leads to a Windows CMD script
syntax error.

Clean up a few other things while there:
1. Explicitly set ENABLEEXTENSIONS
2. Set a variable to the test exit code. There's an unsafe assumption
currently that `%ERRORLEVEL%` doesn't change between the test run
and all of the subsequent uses.
3. Remove unnecessary quotes around setting `HAS_TEST_RESULTS=1`

Fixes #88353
eng/testing/RunnerTemplate.cmd