Allow the MySQL test to pass on Docker

This commit is contained in:
Sander van der Burg 2021-04-04 22:11:40 +02:00 committed by Sander van der Burg
parent d603484180
commit 254cc0b801
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ testService {
tests = {instanceName, instance, runtimeDir, forceDisableUserChange, ...}:
# Make a special exception for the first instance running in privileged mode. It should be connectible with the default settings
if instanceName == "mysql" && !forceDisableUserChange then ''
if instanceName == "mysql" && !forceDisableUserChange && runtimeDir == "/var/run" then ''
machine.succeed("echo 'show databases;' | mysql >&2")
'' else ''
machine.succeed(