send UDID to instruments; it's optional; it's UDID, not UUID

This commit is contained in:
Jonathan Lipps
2013-01-14 11:26:52 -08:00
parent 325d462f19
commit 52c178965c
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -4,9 +4,9 @@ var routing = require('./routing')
, path = require('path')
, instruments = require('../instruments/instruments');
var Appium = function(app, uuid, verbose) {
var Appium = function(app, udid, verbose) {
this.app = app;
this.uuid = uuid;
this.udid = udid;
this.verbose = verbose;
this.instruments = null;
this.rest = null;
@@ -35,7 +35,7 @@ Appium.prototype.start = function(cb) {
this.instruments = instruments(
this.rest
, path.resolve(__dirname, '../' + this.app)
, null
, this.udid
, path.resolve(__dirname, 'uiauto/bootstrap.js')
, path.resolve(__dirname, 'uiauto/Automation.tracetemplate')
);
@@ -114,6 +114,6 @@ Appium.prototype.push = function(elem) {
next();
};
module.exports = function(app, uuid, version) {
return new Appium(app, uuid, version);
module.exports = function(app, udid, version) {
return new Appium(app, udid, version);
};
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = function() {
parser.addArgument([ '-V', '--verbose' ], { required: false, help: 'verbose mode' });
parser.addArgument([ '-U', '--UDID' ]
, { required: true, help: 'unique device identifier of the SUT'
, { required: false, help: 'unique device identifier of the SUT'
});
parser.addArgument([ '-a', '--address' ]