Skip to content

Commit e44f3b5

Browse files
authored
Version2.2 (#12)
* VS AI Update (#8) * Update SystemTester.bat * Update SystemTester.ps1 * Update SystemTester.bat * Update README.md * Update README.md * Update README.md * Update SystemTester.bat * Update SystemTester.ps1 * Update README.md * Create .gitkeep * Create CODE_OF_CONDUCT.md * Create CONTRIBUTING.md * Create PULL_REQUEST_TEMPLATE.md * Update CONTRIBUTING.md * Create bug_report.md * Create config.yml * Create deployment_issue.md * Create feature_request.md * Create implementation-question.md * Create COMPATABILITY.md * Create INSTALLATION.md * Create TROUBLESHOOTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Delete CONTRIBUTING.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Handle both script names in batch launcher (#3) * Add network speed and update visibility to reports (#4) * Improve GPU detection and batch reliability (#5) * Handle tool verification exit statuses (#6) * Update README.md * Fix host:port string interpolation in latency test (#7) * refactor: use approved verbs and fix analyzer issues - Clean-ToolOutput -> Convert-ToolOutput (+call site) - Run-Tool -> Invoke-Tool (+call sites) - Generate-Report -> New-Report (+call sites) - Replace param with (alias Args) - Avoid automatic var in PsPing - Fix comparison order - Remove unused var - Repair GPU submenu strings causing parse error * fix: address VS warnings - Rename Run-Tool -> Invoke-Tool - Replace use of with - Use Convert-ToolOutput in tool runner - Keep -Args support via [Alias('Args')]
1 parent dde4070 commit e44f3b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

SystemTester.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function Convert-ToolOutput {
268268
}
269269

270270
# Run tool
271-
function Run-Tool {
271+
function Invoke-Tool {
272272
param(
273273
[string]$ToolName,
274274
[Alias('Args')]
@@ -296,13 +296,13 @@ function Run-Tool {
296296
try {
297297
$start = Get-Date
298298
if ($ToolName -in @("psinfo","pslist","handle","autorunsc","testlimit","contig")) {
299-
$Args = "-accepteula $Args"
299+
$ArgumentList = "-accepteula $ArgumentList"
300300
}
301301

302-
$argArray = if ($Args.Trim()) { $Args.Split(' ') | Where-Object { $_ } } else { @() }
302+
$argArray = if ($ArgumentList.Trim()) { $ArgumentList.Split(' ') | Where-Object { $_ } } else { @() }
303303
$rawOutput = & $toolPath $argArray 2>&1 | Out-String
304304
$duration = ((Get-Date) - $start).TotalMilliseconds
305-
$cleanOutput = Clean-ToolOutput -ToolName $ToolName -RawOutput $rawOutput
305+
$cleanOutput = Convert-ToolOutput -ToolName $ToolName -RawOutput $rawOutput
306306

307307
$script:TestResults += @{
308308
Tool=$ToolName; Description=$Description

0 commit comments

Comments
 (0)