mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Allow the cleanup plugin to be disabled. Resolves #346 and others. May
need a more generic method to disable individual plugins later.
This commit is contained in:
@@ -12,6 +12,10 @@ module.exports = syrup.serial()
|
||||
var log = logger.createLogger('device:plugins:cleanup')
|
||||
var plugin = Object.create(null)
|
||||
|
||||
if (!options.cleanup) {
|
||||
return plugin
|
||||
}
|
||||
|
||||
function listPackages() {
|
||||
return adb.getPackages(options.serial)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user