summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2021-08-27 11:24:09 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-08-29 19:03:58 +0000
commitc5d4ebd138d63d23e445b7e2b420206d233e6f7e (patch)
treefc0f1c819e3a64b2caf8e0864df54b3db3b641d4
parent946737d882516d973c7ad54432c262d3381f1cf7 (diff)
Android: pass -g to testrunner to grant run time permissions
Some Qt modules/tests go through features that require run-time Android permissions which are granted by user input, that of course is not ideally possible while running unit tests. So when installing the app adb can do that for us. Change-Id: I92d33d5213c3779d7ca246ec0fb359d2ead4fa6f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 07283f15272d4d926fc730f5f2164fbe736f0d89) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/tools/androidtestrunner/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp
index 200cf5a5ed..2e44ff61c8 100644
--- a/src/tools/androidtestrunner/main.cpp
+++ b/src/tools/androidtestrunner/main.cpp
@@ -488,7 +488,7 @@ int main(int argc, char *argv[])
}
RunnerLocker lock; // do not install or run packages while another test is running
- if (!execCommand(QStringLiteral("%1 install -r %2")
+ if (!execCommand(QStringLiteral("%1 install -r -g %2")
.arg(g_options.adbCommand, g_options.apkPath), nullptr, g_options.verbose)) {
return 1;
}