From 4b1b9ad7b0f7c86bb8f41a0ec7d1863a3246dd37 Mon Sep 17 00:00:00 2001 From: Ryan Chu Date: Wed, 23 Jan 2019 16:44:27 +0100 Subject: [PATCH] Enable path conversion from Windows-style to Unix-style on Windows COMPOSE_CONVERT_WINDOWS_PATHS is supported by Docker and available for you to configure the docker-compose command-line behavior. It enables path conversion from Windows-style to Unix-style in volume definitions. Users of Docker Machine and Docker Toolbox on Windows should always set this to true. Change-Id: Ib59756ad68482fdd889ce39ab1ab0118b5fc9071 Reviewed-by: Edward Welbourne --- tests/auto/testserver.pri | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/testserver.pri b/tests/auto/testserver.pri index 15ae6228f9b..00425711157 100644 --- a/tests/auto/testserver.pri +++ b/tests/auto/testserver.pri @@ -95,6 +95,11 @@ isEmpty(TESTSERVER_VERSION) { # The environment variables passed to the docker-compose file TEST_ENV = '\$\$env:MACHINE_IP = docker-machine ip qt-test-server;' TEST_ENV += '\$\$env:TEST_DOMAIN = $$shell_quote(\"$$DNSDOMAIN\");' + + # Docker-compose CLI environment variables: + # Enable path conversion from Windows-style to Unix-style in volume definitions. + TEST_ENV += '\$\$env:COMPOSE_CONVERT_WINDOWS_PATHS = $$shell_quote(\"true\");' + TEST_CMD = 'PowerShell -noprofile' CONFIG += PowerShell } else {