mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:26 +02:00
Fix monkey command to not break due to auto-escaping.
This commit is contained in:
@@ -158,13 +158,12 @@ module.exports = function(options) {
|
||||
return devutil.ensureUnusedPort(adb, options.serial, 1080)
|
||||
.then(function(port) {
|
||||
var log = logger.createLogger('device:remote:monkey')
|
||||
return adb.shellAsync(options.serial, [
|
||||
return adb.shellAsync(options.serial, util.format(
|
||||
// Some devices fail without an SD card installed; we can
|
||||
// fake an external storage using this method
|
||||
'EXTERNAL_STORAGE=/data/local/tmp'
|
||||
, 'monkey'
|
||||
, '--port', port
|
||||
])
|
||||
'EXTERNAL_STORAGE=/data/local/tmp monkey --port %d'
|
||||
, port
|
||||
))
|
||||
.then(function(out) {
|
||||
vitals.register('device:remote:monkey:shell', out)
|
||||
out.pipe(require('split')())
|
||||
|
||||
Reference in New Issue
Block a user