Allow guard wrappers to forward custom arguments
This commit is contained in:
@@ -16,12 +16,20 @@ Windows `cmd` wrapper:
|
||||
scripts\smoke\run-vpnruntime-ci-guards.cmd
|
||||
```
|
||||
|
||||
With custom parameters:
|
||||
|
||||
```cmd
|
||||
scripts\smoke\run-vpnruntime-ci-guards.cmd -AntiFlakeCount 5 -TargetedCount 10 -SkipRace
|
||||
```
|
||||
|
||||
Linux/macOS/WSL wrapper:
|
||||
|
||||
```bash
|
||||
./scripts/smoke/run-vpnruntime-ci-guards.sh
|
||||
```
|
||||
|
||||
Both wrappers forward all arguments to the PowerShell script.
|
||||
|
||||
## Verification matrix
|
||||
|
||||
### Locally proven in this repository work
|
||||
|
||||
@@ -3,7 +3,7 @@ setlocal
|
||||
set SCRIPT_DIR=%~dp0
|
||||
pushd "%SCRIPT_DIR%..\.."
|
||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
||||
pwsh -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%run-vpnruntime-ci-guards.ps1" -AntiFlakeCount 20 -TargetedCount 50
|
||||
pwsh -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%run-vpnruntime-ci-guards.ps1" %*
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
popd
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
@@ -5,5 +5,4 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
||||
|
||||
cd "${REPO_ROOT}"
|
||||
pwsh -NoProfile -ExecutionPolicy Bypass -File "scripts/smoke/run-vpnruntime-ci-guards.ps1" -AntiFlakeCount 20 -TargetedCount 50
|
||||
|
||||
pwsh -NoProfile -ExecutionPolicy Bypass -File "scripts/smoke/run-vpnruntime-ci-guards.ps1" "$@"
|
||||
|
||||
Reference in New Issue
Block a user