[Windows] win: add validation InstalledSoftware.md and testResults.xml files (#3960)

* win: add validation InstalledSoftware.md file
This commit is contained in:
Aleksandr Chebotov
2021-08-27 09:38:18 +03:00
committed by GitHub
parent ca51829236
commit 5aa96839a8
9 changed files with 50 additions and 11 deletions

View File

@@ -439,7 +439,7 @@ function Get-AndroidPackages {
[string]$AndroidSDKManagerPath
)
return (& $AndroidSDKManagerPath --list --verbose).Trim() | Foreach-Object { $_.Split()[0] } | Where-Object {$_}
return (cmd /c "$AndroidSDKManagerPath --list --verbose 2>&1").Trim() | Foreach-Object { $_.Split()[0] } | Where-Object {$_}
}
function Get-AndroidPackagesByName {

View File

@@ -53,6 +53,10 @@ function Invoke-PesterTests {
if ($TestName) {
$configuration.Filter.FullName = $TestName
}
if ($TestFile -eq "*") {
$configuration.TestResult.Enabled = $true
$configuration.TestResult.OutputPath = "C:\image\Tests\testResults.xml"
}
# Update environment variables without reboot
Update-Environment