Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Problem
Android does not respect the custom test timeout that CMake sets with the environment variable QTEST_FUNCTION_TIMEOUT.
Suggested solution
In order to send a test with custom arguments to the (emulated) device, androidtestrunner executes:
adb shell am start -e applicationArguments "whatever args we need"
The key-value pair applicationArguments is then parsed by QtLoader.java:
String parameters = intent.getStringExtra("applicationArguments");
By the same logic we should be able to send custom environment variables, by doing for example:
adb shell am start -e applicationArguments "arg1 arg2" -e environmentVariables "VAR1=blah VAR2=blue"
Attachments
Issue Links
- relates to
-
QTBUG-106479 androidtestrunner does not honour QTEST_FUNCTION_TIMEOUT
- Reported