Skip to content

Commit af70fb3

Browse files
authored
device-test.ps1: add verbose flag (#4522)
1 parent 3f12094 commit af70fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/device-test.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[CmdletBinding()] # -Verbose
12
param(
23
[Parameter(Position = 0, Mandatory = $true)]
34
[ValidateNotNullOrEmpty()]
@@ -94,6 +95,10 @@ try
9495
Remove-Item -Recurse -Force test_output -ErrorAction SilentlyContinue
9596
try
9697
{
98+
if ($VerbosePreference)
99+
{
100+
$arguments += '-v'
101+
}
97102
xharness $group test $arguments --output-directory=test_output
98103
if ($LASTEXITCODE -ne 0)
99104
{

0 commit comments

Comments
 (0)