diff --git a/eng/common/templates/steps/test-images-linux-client.yml b/eng/common/templates/steps/test-images-linux-client.yml index 6a747016c8..82fe81c93b 100644 --- a/eng/common/templates/steps/test-images-linux-client.yml +++ b/eng/common/templates/steps/test-images-linux-client.yml @@ -59,17 +59,9 @@ steps: artifactName: image-info condition: ${{ parameters.condition }} - template: /eng/common/templates/steps/parse-test-arg-arrays.yml@self -- powershell: > - $(test.init); - docker exec - $(testRunner.options) - $(testRunner.container) - pwsh - -Command "$(testScriptPath) - -Paths $(imageBuilderPathsArrayInitStr) - -OSVersions $(osVersionsArrayInitStr) - -Architecture '$(architecture)' - $(additionalTestArgs)" +- powershell: | + echo "$(test.init); docker exec $(testRunner.options) $(testRunner.container) pwsh -Command ""$(testScriptPath) -Paths $(imageBuilderPathsArrayInitStr) -OSVersions $(osVersionsArrayInitStr) -Architecture '$(architecture)' $(additionalTestArgs)""" + $(test.init); docker exec $(testRunner.options) $(testRunner.container) pwsh -Command "$(testScriptPath) -Paths $(imageBuilderPathsArrayInitStr) -OSVersions $(osVersionsArrayInitStr) -Architecture '$(architecture)' $(additionalTestArgs)" displayName: Test Images condition: and(succeeded(), ${{ parameters.condition }}) - ${{ if and(eq(variables['System.TeamProject'], parameters.internalProjectName), ne(variables['Build.Reason'], 'PullRequest')) }}: