blob: 7a87a51cab1a4b5dc26c5b5f2fa1a2f29467a844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
param(
[ValidateSet('stdio', 'http')]
[string]$Transport,
[ValidateSet('127.0.0.1', '::1')]
[string]$HttpHost = '127.0.0.1',
[string]$EvidencePath
)
$ErrorActionPreference = 'Continue'
try {
& (Join-Path $PSScriptRoot 'Operational-E2E.ps1') -Transport $Transport -HttpHost $HttpHost *>&1 | Tee-Object -FilePath $EvidencePath
}
catch {
$_ | Out-String | Tee-Object -FilePath $EvidencePath -Append
exit 1
}
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
exit 0
|