Skip to content

Commit cf3c038

Browse files
authored
[Tools] Fix the issue of processing empty list in CI pipeline. (#14263)
* Add Debug info for test phase * Fix the issue of test project list is empty Co-authored-by: wyunchi-ms <[email protected]>
1 parent daf9563 commit cf3c038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
Value="@(TestCsprojList->Split(`;`)->Count())">
145145
<Output
146146
TaskParameter="Value"
147-
PropertyName="IsTestListEmpty" />
147+
PropertyName="TestCsprojListCount" />
148148
</CreateProperty>
149149
</Target>
150150

@@ -317,7 +317,7 @@
317317

318318
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->
319319
<!-- https://github.com/xunit/xunit/issues/1154#issuecomment-405366373 -->
320-
<Exec Command="dotnet test $(RepoArtifacts)Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework $(TestFramework) --logger trx --results-directory &quot;$(TestOutputDirectory)&quot;" Condition="'$(IsTestListEmpty)' == 'false'" />
320+
<Exec Command="dotnet test $(RepoArtifacts)Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework $(TestFramework) --logger trx --results-directory &quot;$(TestOutputDirectory)&quot;" Condition="$(TestCsprojListCount) == 0" />
321321
<Message Importance="high" Text="Finish running tests..." />
322322
<OnError ExecuteTargets="TestFailureErrorMessage" />
323323
</Target>

0 commit comments

Comments
 (0)