commit 130a2c8380a227a2213fadcf4ee4759fd670e939
parent a1df041e867d546fe64685ffcf993c7566e45fe6
Author: Flor Chacón <14323496+florelis@users.noreply.github.com>
Date: Tue, 10 Jan 2023 12:44:39 -0800
Make correlation test script work on powershell.exe (#2834)
One of the correlation test scripts includes a line that makes a cmdlet use utf8BOM encoding, which doesn't exist in powershell.exe, only on pwsh.exe. Change this encoding to utf8 which is supported in both.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/CorrelationTestbed/Process-CorrelationResults.ps1 b/tools/CorrelationTestbed/Process-CorrelationResults.ps1
@@ -73,12 +73,12 @@ foreach ($result in (Get-ChildItem $ResultsPath -Directory))
$stats.CorrelationDisagreement += 1
}
}
- Export-Csv -InputObject ($resultObj | Select-Object -Property * -ExcludeProperty @("Error", "Phase", "Action", "HRESULT") ) -Path $resultFile -Append -Encoding UTF8BOM
+ Export-Csv -InputObject ($resultObj | Select-Object -Property * -ExcludeProperty @("Error", "Phase", "Action", "HRESULT") ) -Path $resultFile -Append -Encoding utf8
}
else
{
$stats.Failed++
- Export-Csv -InputObject $resultObj -Path $failedFile -Append -Encoding UTF8BOM
+ Export-Csv -InputObject $resultObj -Path $failedFile -Append -Encoding utf8
}
}