Skip to content

Commit

Permalink
Revert all changes to establish baseline behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussell committed Apr 17, 2024
1 parent 4699594 commit 48cb347
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions eng/common/templates/steps/test-images-linux-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,16 @@ steps:
displayName: Docker logout
condition: and(always(), ${{ parameters.condition }})
continueOnError: true
- powershell: |
$ErrorActionPreference = 'Continue'
docker cp $(testRunner.container):/repo/$(testResultsDirectory) $(Common.TestResultsDirectory)/.
$hasTestResults = Test-Path $(Common.TestResultsDirectory)
echo "##vso[task.setvariable variable=hasTestResults]$hasTestResults"
if (!$hasTestResults) {
echo "There were no test outputs in $(Common.TestResultsDirectory)/$(testResultsDirectory). Skipping test result publishing."
}
- powershell: >
docker cp
$(testRunner.container):/repo/$(testResultsDirectory)
$(Common.TestResultsDirectory)/.
displayName: Copy Test Results
condition: and(always(), ${{ parameters.condition }})
continueOnError: true
- task: PublishTestResults@2
displayName: Publish Test Results
condition: and(always(), ${{ parameters.condition }}, eq(variables['hasTestResults'], 'True'))
condition: and(always(), ${{ parameters.condition }})
continueOnError: true
inputs:
testRunner: vSTest
Expand Down

0 comments on commit 48cb347

Please sign in to comment.