mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
[macOS] refactor utils.sh and related scripts (#8998)
* Update Software Report to support azcopy output * Update util.sh and related scripts * Remove rosetta test from the script * Update mono script * clean up * remove condition from install pipx script * Update scripts according to comments --------- Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
11
images/macos/scripts/tests/Rosetta.Tests.ps1
Normal file
11
images/macos/scripts/tests/Rosetta.Tests.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
|
||||
$os = Get-OSVersion
|
||||
|
||||
Describe "Rosetta" -Skip:(-not $os.IsArm64) {
|
||||
It "Rosetta is available" {
|
||||
$commandResult = Get-CommandResult "/usr/bin/pgrep oahd"
|
||||
$commandResult.Output | Should -Match "\d+"
|
||||
$commandResult.ExitCode | Should -Be 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user