mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Migrate toolcache / toolset tests to Pester (#1222)
* implement toolset tests * Update TestsHelpers.ps1 * Update InstallHelpers.ps1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user