@@ -10,27 +10,27 @@ parameters:
1010 type : string
1111- name : testTargets
1212 type : string
13- - name : skipTesting
13+ - name : runTesting
1414 type : boolean
1515steps :
1616- script : |
1717 call "$(vsDevCmdBat)" -host_arch=${{ parameters.hostArch }} -arch=${{ parameters.targetArch }} -no_logo
1818 ninja --verbose -k 0 ${{ parameters.testTargets }}
19- displayName : ' Build and Run Tests'
19+ displayName : ' Run Tests'
2020 timeoutInMinutes : 30
21- condition : and(succeeded(), not( ${{ parameters.skipTesting }}) )
21+ condition : and(succeeded(), ${{ parameters.runTesting }})
2222 workingDirectory : $(buildOutputLocation)
2323 env : { TMP: $(tmpDir), TEMP: $(tmpDir) }
2424- task : PublishTestResults@2
2525 displayName : ' Publish Tests'
2626 timeoutInMinutes : 5
27- condition : and(succeededOrFailed(), not( ${{ parameters.skipTesting }}) )
27+ condition : and(succeededOrFailed(), ${{ parameters.runTesting }})
2828 inputs :
2929 searchFolder : $(buildOutputLocation)
3030 testResultsFormat : JUnit
3131 testResultsFiles : ' **/test-results.xml'
3232 testRunTitle : ' test-${{ parameters.targetPlatform }}-$(System.JobPositionInPhase)'
3333- publish : $(buildOutputLocation)/test-results.xml
3434 artifact : ' ${{ parameters.targetPlatform }}-$(System.JobPositionInPhase)-xml-$(System.JobId)'
35- condition : and(failed(), not( ${{ parameters.skipTesting }}) )
35+ condition : and(failed(), ${{ parameters.runTesting }})
3636 displayName : ' Publish XML Artifact'
0 commit comments