mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
option to cleanup tmp folder during cleanup phase (#772)
* option to cleanup tmp folder during cleanup phase Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com> * do only one adb command at time to ensure them all are executed Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com> * cleanup and fix lint errors Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com> --------- Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
This commit is contained in:
committed by
GitHub
parent
870d837a9d
commit
8aae1616ac
@@ -39,6 +39,12 @@ module.exports.builder = function(yargs) {
|
||||
, type: 'boolean'
|
||||
, default: false
|
||||
})
|
||||
.option('cleanup-folder', {
|
||||
describe: 'Whether to remove pre-defined folder during cleanup. ' +
|
||||
'eg. "--cleanup-folder /data/local /tmp"'
|
||||
, type: 'array'
|
||||
, default: []
|
||||
})
|
||||
.option('connect-port', {
|
||||
describe: 'Port allocated to adb connections.'
|
||||
, type: 'number'
|
||||
@@ -201,6 +207,7 @@ module.exports.handler = function(argv) {
|
||||
, cleanup: argv.cleanup
|
||||
, cleanupDisableBluetooth: argv.cleanupDisableBluetooth
|
||||
, cleanupBluetoothBonds: argv.cleanupBluetoothBonds
|
||||
, cleanupFolder: argv.cleanupFolder
|
||||
, screenReset: argv.screenReset
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user