Skip to content

Commit 4dd459a

Browse files
authored
Fix validation on PR build to end-to-end test script for BCApps (#2042)
BCApps test is failing because the number of projects there keeps changing. Make the test a bit more generic to avoid having to change it often.
1 parent 85b60dd commit 4dd459a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

e2eTests/scenarios/BCApps/runtest.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ if (-not $run) {
125125
}
126126
WaitWorkflow -repository $repository -runid $run.id
127127

128-
# There should be only 1 app rebuilt
128+
# There should be at least 1 app and 1 test app rebuilt
129129
Test-ArtifactsFromRun -runid $run.id -folder '.prartifacts' -repoVersion '*.*' -appVersion '*.*'
130130
$appCount = @(Get-ChildItem -Path '.prartifacts/*-Apps-*/*.app' -Recurse).Count
131-
$appCount | Should -Be 1
131+
$testAppCount = @(Get-ChildItem -Path '.prartifacts/*-TestApps-*/*.app' -Recurse).Count
132+
$appCount | Should -BeGreaterThan 0
133+
$testAppCount | Should -BeGreaterThan 0
132134

133135
Pop-Location
134136
RemoveRepository -repository $repository -path $repoPath

0 commit comments

Comments
 (0)