mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Add shell symlinks (#2395)
* add shell symlinks * fix paths * add a wrapper * fix target output * fix tests
This commit is contained in:
committed by
GitHub
parent
da495ea119
commit
68e9c68855
13
images/win/scripts/Tests/Shell.Tests.ps1
Normal file
13
images/win/scripts/Tests/Shell.Tests.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
Describe "Shell" {
|
||||
$shellTestCases = @(
|
||||
@{Name = "C:\shells\gitbash.exe"; Target = "$env:ProgramFiles\Git\bin\bash.exe"},
|
||||
@{Name = "C:\shells\msys2bash.cmd"; Target = $null}
|
||||
)
|
||||
if (Test-IsWin19) {
|
||||
$shellTestCases += @{Name = "C:\shells\wslbash.exe"; Target = "$env:SystemRoot\System32\bash.exe"}
|
||||
}
|
||||
|
||||
It "<Name> target to <Target>" -TestCases $shellTestCases {
|
||||
(Get-Item $Name).Target | Should -BeExactly $Target
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user