Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions SystemTester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function Convert-ToolOutput {
}

# Run tool
function Run-Tool {
function Invoke-Tool {
param(
[string]$ToolName,
[Alias('Args')]
Expand Down Expand Up @@ -296,13 +296,13 @@ function Run-Tool {
try {
$start = Get-Date
if ($ToolName -in @("psinfo","pslist","handle","autorunsc","testlimit","contig")) {
$Args = "-accepteula $Args"
$ArgumentList = "-accepteula $ArgumentList"
}

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

$script:TestResults += @{
Tool=$ToolName; Description=$Description
Expand Down
Loading