Skip to content

Commit 4249da3

Browse files
authored
[ci] Report when dotnet-test-slicer fails (#8259)
Changes to the `dotnet-test-slicer` task from commit a427688 may have caused it to fail silently if any issues occur. Updating the task to fail if anything is written to stderr should fix this.
1 parent 6ba9992 commit 4249da3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-tools/automation/yaml-templates/run-sliced-nunit-tests.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ steps:
1515
--total-slices=$(System.TotalJobsInPhase)
1616
--outfile="${{ parameters.testAssembly }}.runsettings"
1717
displayName: Slice unit tests with filter
18+
failOnStderr: true
1819
- ${{ else }}:
1920
- pwsh: >-
2021
dotnet-test-slicer slice
@@ -23,6 +24,7 @@ steps:
2324
--total-slices=$(System.TotalJobsInPhase)
2425
--outfile="${{ parameters.testAssembly }}.runsettings"
2526
displayName: Slice unit tests
27+
failOnStderr: true
2628
2729
- ${{ if eq(parameters.retryFailedTests, 'false') }}:
2830
# If we aren't using auto-retry logic, then this is just a simple template call

0 commit comments

Comments
 (0)