Allow guard wrappers to forward custom arguments
build / backend (push) Has been cancelled
build / node-agent (push) Has been cancelled
build / worker (push) Has been cancelled

This commit is contained in:
2026-05-12 09:31:55 +03:00
parent 27bb8102a2
commit 99f5e28128
4 changed files with 20 additions and 3 deletions
+8
View File
@@ -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
+1 -1
View File
@@ -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%
+1 -2
View File
@@ -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" "$@"