mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +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,11 +22,7 @@ module.exports = syrup.serial()
|
||||||
plugin.retrieve = function(file) {
|
plugin.retrieve = function(file) {
|
||||||
log.info('Retriving file %s', 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){
|
.then(function(stats){
|
||||||
if (stats.size == 0){
|
if (stats.size == 0){
|
||||||
log.info(util.format("File %s is empty", file))
|
log.info(util.format("File %s is empty", file))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue