mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[Ubuntu] install mysql init script for sysVinit compatibility (#4736)
This commit is contained in:
@@ -12,7 +12,7 @@ Describe "PostgreSQL" {
|
||||
It "PostgreSQL Service" {
|
||||
"sudo systemctl start postgresql" | Should -ReturnZeroExitCode
|
||||
(Get-CommandResult "pg_isready").Output | Should -Be "/var/run/postgresql:5432 - accepting connections"
|
||||
"sudo systemctl stop postgresql" | Should -ReturnZeroExitCode
|
||||
"sudo systemctl stop postgresql" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "PostgreSQL version should correspond to the version in the toolset" {
|
||||
@@ -36,4 +36,11 @@ Describe "MySQL" {
|
||||
"sudo mysql -vvv -e 'DROP DATABASE smoke_test' -uroot -proot" | Should -ReturnZeroExitCode
|
||||
"sudo systemctl stop mysql" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "MySQL sysVinit script works" {
|
||||
sudo /etc/init.d/mysql start | Out-Null
|
||||
systemctl is-active mysql | Should -Be "active"
|
||||
sudo /etc/init.d/mysql stop | Out-Null
|
||||
systemctl is-active mysql | Should -Be "inactive"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user