From 7fe6fb43b5518bd8d748565bbe7535c73696014e Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 18 Sep 2020 14:02:11 +0200 Subject: [PATCH] AutoTest: Fix re-running failed data-driven QuickTests QuickTests are not displayed inside the Tests tree which makes marking them as failed or trying to run these tests from the results pane impossible. Work around by treating them as functions to re-run the whole function instead of a single data tag if this happens. Change-Id: I92f6403ff0e02302c52184d4403f0194226a9989 Reviewed-by: David Schulz --- src/plugins/autotest/qtest/qttestresult.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/autotest/qtest/qttestresult.cpp b/src/plugins/autotest/qtest/qttestresult.cpp index a0a360651df..9aeffe414d3 100644 --- a/src/plugins/autotest/qtest/qttestresult.cpp +++ b/src/plugins/autotest/qtest/qttestresult.cpp @@ -164,7 +164,8 @@ bool QtTestResult::matches(const TestTreeItem *item) const return matchesTestCase(item); case TestTreeItem::TestFunction: case TestTreeItem::TestSpecialFunction: - if (!isTestFunction()) + // QuickTest data tags have no dedicated TestTreeItem, so treat these results as function + if (!isTestFunction() && !(m_type == TestType::QuickTest && isDataTag())) return false; if (parentItem->proFile() != m_projectFile) return false;