diff options
author | Ryan Chu <ryan.chu@qt.io> | 2019-01-23 16:44:27 +0100 |
---|---|---|
committer | Ryan Chu <ryan.chu@qt.io> | 2019-01-24 15:42:47 +0000 |
commit | 4b1b9ad7b0f7c86bb8f41a0ec7d1863a3246dd37 (patch) | |
tree | 79efc44e002edd0f7df5a33b16bae1c7f9f35c99 | |
parent | fe1907435d460270182a2bdcfc111d1f0ce85e1b (diff) |
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 <edward.welbourne@qt.io>
-rw-r--r-- | tests/auto/testserver.pri | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/testserver.pri b/tests/auto/testserver.pri index 15ae6228f9..0042571115 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 { |