Docker: assert on starting process in non device working dir

Change-Id: I7dd1040c77b3a7f7378b5567b7b5568af5f57848
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2022-06-15 11:47:05 +02:00
parent a750961f4d
commit a91043d8ba

View File

@@ -187,6 +187,7 @@ CommandLine DockerProcessImpl::fullLocalCommandLine(bool interactive)
QStringList args;
if (!m_setup.m_workingDirectory.isEmpty()) {
QTC_CHECK(DeviceManager::deviceForPath(m_setup.m_workingDirectory) == m_device);
args.append({"cd", m_setup.m_workingDirectory.path()});
args.append("&&");
}