forked from qt-creator/qt-creator
Docker: Silence assert
We query the device with executables that may or may not exist. So, expect the call to fail if the image does not contain the respective executable in PATH. Change-Id: Iff43879c72155de8a8a9276e26085d03ead61f2f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -939,7 +939,8 @@ FilePath DockerDevice::searchInPath(const FilePath &filePath) const
|
||||
proc.waitForFinished();
|
||||
|
||||
LOG("Run sync:" << dcmd.toUserOutput() << " result: " << proc.exitCode());
|
||||
QTC_ASSERT(proc.exitCode() == 0, return filePath);
|
||||
if (proc.exitCode() != 0)
|
||||
return {};
|
||||
|
||||
const QString output = proc.stdOut().trimmed();
|
||||
return mapToGlobalPath(FilePath::fromString(output));
|
||||
|
||||
Reference in New Issue
Block a user