Migrate toolcache / toolset tests to Pester (#1222)

* implement toolset tests

* Update TestsHelpers.ps1

* Update InstallHelpers.ps1
This commit is contained in:
Maxim Lobanov
2020-07-16 07:30:34 +03:00
committed by GitHub
parent 2eadd5ef2b
commit 22dd05270e
9 changed files with 130 additions and 308 deletions

View File

@@ -12,6 +12,11 @@ function Get-CommandResult {
}
}
# Gets path to the tool, analogue of 'which tool'
function Get-WhichTool($tool) {
return (Get-Command $tool).Path
}
# Gets value of environment variable by the name
function Get-EnvironmentVariable($variable) {
return [System.Environment]::GetEnvironmentVariable($variable)