Skip to content

Commit 4c185ee

Browse files
committed
Add test logging to diagnose a failure
1 parent d81a2e5 commit 4c185ee

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

eng/common/templates/steps/test-images-linux-client.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,9 @@ steps:
5959
artifactName: image-info
6060
condition: ${{ parameters.condition }}
6161
- template: /eng/common/templates/steps/parse-test-arg-arrays.yml@self
62-
- powershell: >
63-
$(test.init);
64-
docker exec
65-
$(testRunner.options)
66-
$(testRunner.container)
67-
pwsh
68-
-Command "$(testScriptPath)
69-
-Paths $(imageBuilderPathsArrayInitStr)
70-
-OSVersions $(osVersionsArrayInitStr)
71-
-Architecture '$(architecture)'
72-
$(additionalTestArgs)"
62+
- powershell: |
63+
echo "$(test.init); docker exec $(testRunner.options) $(testRunner.container) pwsh -Command ""$(testScriptPath) -Paths $(imageBuilderPathsArrayInitStr) -OSVersions $(osVersionsArrayInitStr) -Architecture '$(architecture)' $(additionalTestArgs)"""
64+
$(test.init); docker exec $(testRunner.options) $(testRunner.container) pwsh -Command "$(testScriptPath) -Paths $(imageBuilderPathsArrayInitStr) -OSVersions $(osVersionsArrayInitStr) -Architecture '$(architecture)' $(additionalTestArgs)"
7365
displayName: Test Images
7466
condition: and(succeeded(), ${{ parameters.condition }})
7567
- ${{ if and(eq(variables['System.TeamProject'], parameters.internalProjectName), ne(variables['Build.Reason'], 'PullRequest')) }}:

0 commit comments

Comments
 (0)