AutoTest: Ensure we construct a file path

The original check that prevented constructing a directory
will be removed.

Change-Id: Ifb7960bfc245b120513ef65a1764ca60c5108093
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2021-07-15 08:17:38 +02:00
parent 7bba3f7d6f
commit 4103dfd6c2

View File

@@ -42,7 +42,7 @@ Utils::FilePath TestOutputReader::constructSourceFilePath(const Utils::FilePath
const QString &file) const QString &file)
{ {
const Utils::FilePath filePath = path.resolvePath(file); const Utils::FilePath filePath = path.resolvePath(file);
return filePath.exists() ? filePath : Utils::FilePath(); return filePath.isReadableFile() ? filePath : Utils::FilePath();
} }
TestOutputReader::TestOutputReader(const QFutureInterface<TestResultPtr> &futureInterface, TestOutputReader::TestOutputReader(const QFutureInterface<TestResultPtr> &futureInterface,