1
0
Fork 0
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:
hzsunshx 2015-09-23 09:50:29 +08:00
parent ab35ea3cd9
commit 5980e83275

View file

@ -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/