Commit Graph

5 Commits

Author SHA1 Message Date
Enes Çakır
da684ca6d2 [Ubuntu] Make brew version check consistent (#10369)
`Tools.Tests.ps1` checks the version of `brew` with `--version` argument.

```powershell
    Describe "Homebrew" {
    It "homebrew" {
        "/home/linuxbrew/.linuxbrew/bin/brew --version" | Should -ReturnZeroExitCode
    }
}
```

`SoftwareReport.Common.psm1` checks it with `-v` argument.

```powershell
    function Get-HomebrewVersion {
        $result = Get-CommandResult "/home/linuxbrew/.linuxbrew/bin/brew -v"
        $result.Output -match "Homebrew (?<version>\d+\.\d+\.\d+)" | Out-Null
        return $Matches.version
    }
```

Generally, `--version` and `-v` are equivalent. But a recent bug in `brew` makes `-v` returns the output of `brew help`.

https://github.com/Homebrew/brew/pull/17903

It's best to maintain consistency in version checks and explicitly use `--version` in both places.
2024-07-30 22:41:12 +05:30
Erik Bershel
3d2dd97aa7 [Ubuntu] Add Ubuntu-24.04 base image (#9754)
Co-authored-by: Alexey Ayupov <alexey-ayupov@github.com>
2024-04-26 23:18:26 +02:00
Shamil Mubarakshin
a9bc069a35 [ubuntu] Refactor Software Report helpers (#8954) 2023-12-06 13:58:03 +01:00
Shamil Mubarakshin
0c03739e50 [ubuntu] Refactor Common.Helpers (#8910)
* [ubuntu] Refactor Common.Helpers

* Move Get-AndroidPackages function from BeforeAll

* Fix ParameterBinding
2023-11-30 10:23:27 +01:00
Shamil Mubarakshin
5d40b1e213 [Ubuntu] Implement new directories hierarchy (#8627) 2023-11-15 11:36:04 +01:00