mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 01:05:14 +02:00
Fix all JSHint complaints in Node.js code.
This commit is contained in:
@@ -39,8 +39,8 @@ module.exports = syrup.serial()
|
||||
.then(function(installedPath) {
|
||||
log.info('Running version check')
|
||||
return adb.shell(options.serial, util.format(
|
||||
"export CLASSPATH='%s';"
|
||||
+ " exec app_process /system/bin '%s' --version"
|
||||
"export CLASSPATH='%s';" +
|
||||
" exec app_process /system/bin '%s' --version"
|
||||
, installedPath
|
||||
, resource.main
|
||||
))
|
||||
@@ -61,7 +61,7 @@ module.exports = syrup.serial()
|
||||
})
|
||||
})
|
||||
})
|
||||
.catch(function(err) {
|
||||
.catch(function() {
|
||||
log.info('Installing InputAgent.apk')
|
||||
return adb.install(options.serial, resource.apk)
|
||||
.then(function() {
|
||||
|
||||
@@ -58,7 +58,7 @@ module.exports = syrup.serial()
|
||||
.then(function(out) {
|
||||
// Can be "Text is busy", "text busy"
|
||||
return streamutil.findLine(out, (/busy/i))
|
||||
.then(function(line) {
|
||||
.then(function() {
|
||||
log.info('Binary is busy, will retry')
|
||||
return Promise.delay(1000)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user