GenericLinuxDeviceTester: Simplify the main recipe

It's now easily possible to mix GroupItems with the lists of
GroupItems on a common list.

Change-Id: I32b4061e45302e8532d39f84c4e6eb8c9e719faf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2024-01-24 23:49:40 +01:00
parent d9a71c1351
commit e828ef1c13

View File

@@ -307,17 +307,16 @@ void GenericLinuxDeviceTester::testDevice(const IDevice::Ptr &deviceConfiguratio
d->m_device = deviceConfiguration; d->m_device = deviceConfiguration;
QList<GroupItem> taskItems = { const Group root {
d->echoTask("Hello"), // No quoting necessary d->echoTask("Hello"), // No quoting necessary
d->echoTask("Hello Remote World!"), // Checks quoting, too. d->echoTask("Hello Remote World!"), // Checks quoting, too.
d->unameTask(), d->unameTask(),
d->gathererTask(), d->gathererTask(),
d->transferTasks() d->transferTasks(),
d->m_extraTests,
d->commandTasks()
}; };
if (!d->m_extraTests.isEmpty()) d->m_taskTreeRunner.start(root);
taskItems << Group { d->m_extraTests };
taskItems << d->commandTasks();
d->m_taskTreeRunner.start(taskItems);
} }
void GenericLinuxDeviceTester::stopTest() void GenericLinuxDeviceTester::stopTest()