AndroidTestRunner: allow using adb's ANDROID_SERIAL env var
androidtestrunner should've used ANDROID_SERIAL adb env var, instead of introuducing the new one ANDROID_DEVICE_SERIAL, but for now support both. Pick-to: 6.8 Change-Id: Id0fc75fc64d7d3dd033c60e6ba9c6c3350ddd899 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
parent
667588aa86
commit
252550877d
@ -176,7 +176,9 @@ static bool parseOptions()
|
||||
if (g_options.helpRequested || g_options.buildPath.isEmpty() || g_options.apkPath.isEmpty())
|
||||
return false;
|
||||
|
||||
g_options.serial = qEnvironmentVariable("ANDROID_DEVICE_SERIAL");
|
||||
g_options.serial = qEnvironmentVariable("ANDROID_SERIAL");
|
||||
if (g_options.serial.isEmpty())
|
||||
g_options.serial = qEnvironmentVariable("ANDROID_DEVICE_SERIAL");
|
||||
|
||||
if (g_options.ndkStackPath.isEmpty()) {
|
||||
const QString ndkPath = qEnvironmentVariable("ANDROID_NDK_ROOT");
|
||||
@ -192,8 +194,8 @@ static void printHelp()
|
||||
{
|
||||
qWarning( "Syntax: %s <options> -- [TESTARGS] \n"
|
||||
"\n"
|
||||
" Runs an Android test on the default emulator/device or on the one\n"
|
||||
" specified by \"ANDROID_DEVICE_SERIAL\" environment variable.\n"
|
||||
" Runs a Qt for Android test on an emulator or a device. Specify a device\n"
|
||||
" using the environment variables ANDROID_SERIAL or ANDROID_DEVICE_SERIAL.\n"
|
||||
"\n"
|
||||
" Mandatory arguments:\n"
|
||||
" --path <path>: The path where androiddeployqt builds the android package.\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user