cli: verfiy that a phone has a internet connection before a test (#3152)

This commit is contained in:
Peter Hedenskog 2020-09-26 20:19:20 +02:00 committed by GitHub
parent 83e3281f4f
commit 6d37a98fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -687,6 +687,13 @@ module.exports.parseCommandLine = function parseCommandLine() {
describe:
'How long time to wait (in seconds) if the androidBatteryTemperatureWaitTimeInSeconds is not met before the next try'
})
.option('browsertime.androidVerifyNetwork', {
alias: 'androidVerifyNetwork',
type: 'boolean',
default: false,
describe:
'Before a test start, verify that the device has a Internet connection by pinging 8.8.8.8 (or a configurable domain with --androidPingAddress)'
})
.option('browsertime.chrome.android.deviceSerial', {
alias: 'chrome.android.deviceSerial',
describe: