Skip to content

Commit cac5d78

Browse files
committed
Fix Help test
1 parent 6645e1a commit cac5d78

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

solr/packaging/powershell-tests/Help.Tests.ps1

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ BeforeAll {
3636

3737
Write-Host "Using Solr installation at: $SolrTip"
3838
Write-Host "Using Solr command: $SolrCmd"
39-
}
4039

41-
function Test-HelpOutput {
42-
param(
43-
[string[]]$Arguments,
44-
[string]$ExpectedPattern,
45-
[string]$TestName
46-
)
40+
function Test-HelpOutput {
41+
param(
42+
[string[]]$Arguments,
43+
[string]$ExpectedPattern,
44+
[string]$TestName
45+
)
4746

48-
Write-Host "Testing help: $TestName"
49-
Write-Host "Running: $SolrCmd $($Arguments -join ' ')"
47+
Write-Host "Testing help: $TestName"
48+
Write-Host "Running: $SolrCmd $($Arguments -join ' ')"
5049

51-
$output = & $SolrCmd @Arguments 2>&1
52-
$outputStr = $output | Out-String
50+
$output = & $SolrCmd @Arguments 2>&1
51+
$outputStr = $output | Out-String
5352

54-
Write-Host "Exit Code: $LASTEXITCODE"
55-
if ($outputStr.Length -gt 0) {
56-
Write-Host "Output (first 500 chars): $($outputStr.Substring(0, [Math]::Min(500, $outputStr.Length)))"
57-
} else {
58-
Write-Host "WARNING: Output is empty!"
59-
}
53+
Write-Host "Exit Code: $LASTEXITCODE"
54+
if ($outputStr.Length -gt 0) {
55+
Write-Host "Output (first 500 chars): $($outputStr.Substring(0, [Math]::Min(500, $outputStr.Length)))"
56+
} else {
57+
Write-Host "WARNING: Output is empty!"
58+
}
6059

61-
return $outputStr
60+
return $outputStr
61+
}
6262
}
6363

6464
Describe "Solr Help Command" {

0 commit comments

Comments
 (0)