Skip to content

Conversation

@BruceForstall
Copy link
Contributor

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

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 dotnet#88353
@ghost
Copy link

ghost commented Jul 3, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

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

Author: BruceForstall
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@BruceForstall
Copy link
Contributor Author

/azp run runtime-coreclr libraries-jitstress-random

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hoyosjs
Copy link
Member

hoyosjs commented Jul 4, 2023

Can't use build analysis for this one - it seems to be having issues catching that there was a test retry.

@BruceForstall
Copy link
Contributor Author

libraries-jitstress-random shows the correct behavior for the test that previous had the failure fixed here:

https://dev.azure.com/dnceng-public/public/_build/results?buildId=328483&view=ms.vss-test-web.build-test-results-tab&runId=6773756&resultId=198896&paneView=debug

@BruceForstall BruceForstall merged commit dc9a09a into dotnet:main Jul 4, 2023
@BruceForstall BruceForstall deleted the FixLibrariesTestScript branch July 4, 2023 04:18
@ghost ghost locked as resolved and limited conversation to collaborators Aug 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad Windows batch file syntax in libraries test script

2 participants