mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
remove duplicate adb.pull
This commit is contained in:
parent
ab35ea3cd9
commit
5980e83275
1 changed files with 2 additions and 6 deletions
|
@ -22,16 +22,12 @@ module.exports = syrup.serial()
|
|||
plugin.retrieve = function(file) {
|
||||
log.info('Retriving file %s', file)
|
||||
|
||||
return adb.pull(options.serial, file)
|
||||
.then(adbkit.util.readAll)
|
||||
.then(function(){
|
||||
return adb.stat(options.serial, file)
|
||||
})
|
||||
return adb.stat(options.serial, file)
|
||||
.then(function(stats){
|
||||
if (stats.size == 0){
|
||||
log.info(util.format("File %s is empty", file))
|
||||
}
|
||||
|
||||
|
||||
return adb.pull(options.serial, file)
|
||||
.then(function(transfer){
|
||||
// if this is a new store type, somethings need add to units/storage/plugins/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue