forked from qt-creator/qt-creator
TaskTree: Use common done handler
Instead of specifying two separate done and error handlers, specify just one that takes additional "bool success" argument. Task-number: QTCREATORBUG-29834 Change-Id: Ie4f92236a38b03dac3dd33b2c80a317b62772a12 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -410,7 +410,7 @@ void TestRunner::runTestsHelper()
|
||||
qCInfo(runnerLog) << "Working directory:" << process.workingDirectory();
|
||||
qCDebug(runnerLog) << "Environment:" << process.environment().toStringList();
|
||||
};
|
||||
const auto onProcessDone = [this, config, storage](const Process &process) {
|
||||
const auto onProcessDone = [this, config, storage](const Process &process, bool) {
|
||||
TestStorage *testStorage = storage.activeStorage();
|
||||
QTC_ASSERT(testStorage, return);
|
||||
if (process.result() == ProcessResult::StartFailed) {
|
||||
@@ -448,7 +448,7 @@ void TestRunner::runTestsHelper()
|
||||
finishAllAndDone,
|
||||
Tasking::Storage(storage),
|
||||
onGroupSetup(onSetup),
|
||||
ProcessTask(onProcessSetup, onProcessDone, onProcessDone)
|
||||
ProcessTask(onProcessSetup, onProcessDone)
|
||||
};
|
||||
tasks.append(group);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user