mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
Take second split from the end (#6156)
This commit is contained in:
@@ -12,8 +12,8 @@ Describe "PostgreSQL" {
|
||||
It "PostgreSQL version should correspond to the version in the toolset" {
|
||||
$toolsetVersion = Get-ToolsetValue 'postgresql.version'
|
||||
# Client version
|
||||
(psql --version).split()[-1] | Should -BeLike "$toolsetVersion*"
|
||||
(psql --version).split()[-2] | Should -BeLike "$toolsetVersion*"
|
||||
# Server version
|
||||
(pg_config --version).split()[-1] | Should -BeLike "$toolsetVersion*"
|
||||
(pg_config --version).split()[-2] | Should -BeLike "$toolsetVersion*"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user