1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-09 20:42:47 +01:00

Add auto exit when using --benchmark

Maybe we should exit after we created the ScreenPlay app.
Depends on what kind of benchmark we use in the future.
This commit is contained in:
Elias Steurer 2020-10-30 17:24:28 +01:00
parent d5ff21725a
commit 206203fba0

View File

@ -62,6 +62,11 @@ int main(int argc, char* argv[])
QFile metricsFile { QGuiApplication::applicationDirPath() + "/metrics.txt" }; QFile metricsFile { QGuiApplication::applicationDirPath() + "/metrics.txt" };
if (metricsFile.exists()) if (metricsFile.exists())
qInfo() << "Removing old Continuous Integration Metrics Timer: " << metricsFile.remove(); qInfo() << "Removing old Continuous Integration Metrics Timer: " << metricsFile.remove();
QTimer::singleShot(10000, []() {
qInfo() << "Exit ScreenPlay benchmark mode!";
QGuiApplication::quit();
});
} }
// Unit tests // Unit tests