From d3eb451e5547dbf29d64ba1d5c659db31297ccef Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Wed, 6 Feb 2019 10:40:33 -0500 Subject: [PATCH] Fail less on empty or missing result directories --- script/vsts/platforms/macos.yml | 2 +- script/vsts/platforms/windows.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/script/vsts/platforms/macos.yml b/script/vsts/platforms/macos.yml index cdc9328e3..b7d5ea1f8 100644 --- a/script/vsts/platforms/macos.yml +++ b/script/vsts/platforms/macos.yml @@ -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 diff --git a/script/vsts/platforms/windows.yml b/script/vsts/platforms/windows.yml index 07d53bae2..48d29420b 100644 --- a/script/vsts/platforms/windows.yml +++ b/script/vsts/platforms/windows.yml @@ -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