Commit fe5fac90 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fix variable name and logic

parent 7bd909fa
......@@ -77,11 +77,11 @@ void CoronaTestHelper::testFinished()
{
QObject* testObject = sender();
const bool result = testObject->property("failed").toBool();
m_exitcode += !result;
const bool failed = testObject->property("failed").toBool();
m_exitcode += failed;
m_tests.remove(testObject);
qCWarning(PLASMASHELL) << "test finished" << testObject << result << "remaining" << m_tests;
qCWarning(PLASMASHELL) << "test finished" << testObject << failed << "remaining" << m_tests;
if (m_tests.isEmpty()) {
qGuiApp->exit(m_exitcode);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment