Allow guard wrappers to forward custom arguments
This commit is contained in:
@@ -37,6 +37,16 @@ Linux/macOS/WSL wrapper:
|
|||||||
./scripts/smoke/run-vpnruntime-ci-guards.sh
|
./scripts/smoke/run-vpnruntime-ci-guards.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Wrapper scripts pass arguments through to the PowerShell guard script, for example:
|
||||||
|
|
||||||
|
```cmd
|
||||||
|
scripts\smoke\run-vpnruntime-ci-guards.cmd -AntiFlakeCount 5 -TargetedCount 10 -SkipRace
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/smoke/run-vpnruntime-ci-guards.sh -AntiFlakeCount 5 -TargetedCount 10 -SkipRace
|
||||||
|
```
|
||||||
|
|
||||||
Expected:
|
Expected:
|
||||||
|
|
||||||
- all guard steps pass
|
- all guard steps pass
|
||||||
|
|||||||
@@ -16,12 +16,20 @@ Windows `cmd` wrapper:
|
|||||||
scripts\smoke\run-vpnruntime-ci-guards.cmd
|
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:
|
Linux/macOS/WSL wrapper:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/smoke/run-vpnruntime-ci-guards.sh
|
./scripts/smoke/run-vpnruntime-ci-guards.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Both wrappers forward all arguments to the PowerShell script.
|
||||||
|
|
||||||
## Verification matrix
|
## Verification matrix
|
||||||
|
|
||||||
### Locally proven in this repository work
|
### Locally proven in this repository work
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ setlocal
|
|||||||
set SCRIPT_DIR=%~dp0
|
set SCRIPT_DIR=%~dp0
|
||||||
pushd "%SCRIPT_DIR%..\.."
|
pushd "%SCRIPT_DIR%..\.."
|
||||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
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%
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
popd
|
popd
|
||||||
exit /b %EXIT_CODE%
|
exit /b %EXIT_CODE%
|
||||||
|
|||||||
@@ -5,5 +5,4 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
||||||
|
|
||||||
cd "${REPO_ROOT}"
|
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