mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +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:
parent
5abecb18f2
commit
158b6944be
2 changed files with 14 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue