Docker: Check writeData

Previously only the process mode was checked to decide
whether we need an interactive docker session when starting
a process.

Change-Id: Ia80c78d861107239d0c86c405e06f30e7770ff8e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-02-02 10:04:25 +01:00
parent 84ba73be8c
commit 78cf3eb671

View File

@@ -290,7 +290,9 @@ void DockerProcessImpl::start()
if (m_setup.m_lowPriority) if (m_setup.m_lowPriority)
m_process.setLowPriority(); m_process.setLowPriority();
const bool interactive = m_setup.m_processMode == ProcessMode::Writer; const bool interactive = m_setup.m_processMode == ProcessMode::Writer
|| !m_setup.m_writeData.isEmpty();
const CommandLine fullCommandLine = m_devicePrivate const CommandLine fullCommandLine = m_devicePrivate
->withDockerExecCmd(m_setup.m_commandLine, ->withDockerExecCmd(m_setup.m_commandLine,
&m_setup.m_environment, &m_setup.m_environment,