mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-16 06:46:48 +00:00
[Ubuntu] Fix Erlang version in software report
SoftwareReport collects wrong version for Erlang, it reports Eshell version rather than Erlang itself. reference: https://stackoverflow.com/questions/9560815/how-to-get-erlangs-release-version-number-from-a-shell 2nd answer `erl` doesn't have `-v` flag, only `-version` `erlc` `-v` flag is for verbose output `rebar3` reports it's version with flag `-v` Change `erl -v` to `erl -version` as it gets stuck in certain scenarios like using Docker as packer builder. reference: http://erlang.org/doc/man/erl.html
This commit is contained in:
@@ -110,15 +110,15 @@ Describe "Cmake" {
|
||||
}
|
||||
|
||||
Describe "erlang" {
|
||||
$testCases = @("erl", "erlc", "rebar3") | ForEach-Object { @{ErlangCommand = $_} }
|
||||
$testCases = @("erl -version", "erlc -v", "rebar3 -v") | ForEach-Object { @{ErlangCommand = $_} }
|
||||
|
||||
It "erlang <ErlangCommand>" -TestCases $testCases {
|
||||
param (
|
||||
[string] $ErlangCommand
|
||||
)
|
||||
|
||||
"$ErlangCommand -v" | Should -ReturnZeroExitCode
|
||||
}
|
||||
"$ErlangCommand" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "gcc" {
|
||||
|
||||
Reference in New Issue
Block a user