diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-08-27 11:24:09 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-08-29 19:39:42 +0300 |
commit | 07283f15272d4d926fc730f5f2164fbe736f0d89 (patch) | |
tree | cce78a4f08a0ce1568cc1ca29fa3e7164b17f22e /src/tools | |
parent | 52f635b9a0e1fe074bf39b49b25d3ef3f6484676 (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.
Pick-to: 6.2
Change-Id: I92d33d5213c3779d7ca246ec0fb359d2ead4fa6f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/androidtestrunner/main.cpp | 2 |
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; } |