ci(lint): enhance PSScriptAnalyzer settings and suppress false positives; improve error handling in scripts
This commit is contained in:
@@ -117,7 +117,7 @@ for ($i = 1; $i -le $Iterations; $i++) {
|
||||
|
||||
Write-Host "[bench] Cloning..."
|
||||
$sw = [System.Diagnostics.Stopwatch]::StartNew()
|
||||
$r = Invoke-Vmrun -VmrunPath $VmrunPath -Operation clone `
|
||||
$null = Invoke-Vmrun -VmrunPath $VmrunPath -Operation clone `
|
||||
-Arguments @($TemplatePath, $cloneVmx, 'linked', '-snapshot', $SnapshotName) `
|
||||
-ThrowOnError
|
||||
$t.clone = [math]::Round($sw.Elapsed.TotalSeconds, 2)
|
||||
|
||||
Reference in New Issue
Block a user