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>
This commit is contained in:
parent
52f635b9a0
commit
07283f1527
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user