summaryrefslogtreecommitdiff
path: root/src/winrtrunner/runner.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-12-06 16:57:52 +0100
committerOliver Wolff <oliver.wolff@qt.io>2018-12-07 09:03:17 +0000
commita165d75dcbb7ce410e414b4b31d746ab3774dc11 (patch)
tree7c2defda61398f85f3daa71d4cae13ab5fe09a71 /src/winrtrunner/runner.cpp
parentb402c1cff5deefd382bbcc56900c66c7ed0124ed (diff)
downloadqttools-a165d75dcbb7ce410e414b4b31d746ab3774dc11.tar.gz
winrtrunner: Pass logging rules set in the environment to the app
If an auto test fails Coin tries to rerun the same test with logging enabled to get additional information. Instead of just enabling extended logging for winrtrunner we have to pass these rules to the application that is run by winrtrunner to be able to obtain the information. As we cannot set the application's environment from winrtrunner we write qtlogging.ini where the application expects it to be so that logging is enabled on startup. Change-Id: I238a083f6d499f5b6b5eadb43545a5857050a2e8 Reviewed-by: Andre de la Rocha <andre.rocha@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/winrtrunner/runner.cpp')
-rw-r--r--src/winrtrunner/runner.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/winrtrunner/runner.cpp b/src/winrtrunner/runner.cpp
index 9794fd605..e816d9baa 100644
--- a/src/winrtrunner/runner.cpp
+++ b/src/winrtrunner/runner.cpp
@@ -233,6 +233,14 @@ bool Runner::setLoopbackExemptServerEnabled(bool enabled)
return d->engine->setLoopbackExemptServerEnabled(enabled);
}
+bool Runner::setLoggingRules(const QByteArray &rules)
+{
+ Q_D(Runner);
+ Q_ASSERT(d->engine);
+
+ return d->engine->setLoggingRules(rules);
+}
+
bool Runner::suspend()
{
Q_D(Runner);