Fail less on empty or missing result directories

This commit is contained in:
Ash Wilson
2019-02-06 10:40:33 -05:00
parent bef6edb343
commit d3eb451e55
2 changed files with 4 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ jobs:
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
- script: find "${TEST_JUNIT_XML_PATH}"
- script: find "${TEST_JUNIT_XML_PATH}" || true
env:
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Dump test results

View File

@@ -75,7 +75,9 @@ jobs:
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
- powershell: Get-ChildItem -Recurse %TEST_JUNIT_XML_PATH%
- powershell: Get-ChildItem -Recurse $env:TEST_JUNIT_XML_PATH
failOnStderr: false
ignoreLASTEXITCODE: true
env:
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Dump test results