mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 06:53:20 +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
@@ -53,6 +53,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-push', {
|
||||
alias: 'p'
|
||||
, describe: 'Device-side ZeroMQ PULL endpoint to connect to.'
|
||||
@@ -235,6 +241,7 @@ module.exports.handler = function(argv) {
|
||||
.concat(!argv.cleanup ? ['--no-cleanup'] : [])
|
||||
.concat(argv.cleanupDisableBluetooth ? ['--cleanup-disable-bluetooth'] : [])
|
||||
.concat(argv.cleanupBluetoothBonds ? ['--cleanup-bluetooth-bonds'] : [])
|
||||
.concat(argv.cleanupFolder ? ['--cleanup-folder'].concat(argv.cleanupFolder) : [])
|
||||
.concat(!argv.screenReset ? ['--no-screen-reset'] : [])
|
||||
|
||||
return fork(cli, args)
|
||||
|
||||
Reference in New Issue
Block a user