Fixing automatic udid detection

Fix #1399
This commit is contained in:
Dan Cuellar
2013-11-17 17:27:19 -08:00
parent ddd9b9eb5b
commit 2484cfa179

View File

@@ -389,7 +389,7 @@ IOS.prototype.detectTraceTemplate = function(cb) {
IOS.prototype.detectUdid = function (cb) {
if (this.udid !== null && this.udid === "auto") {
logger.info("Auto-detecting iOS udid...");
var udidetectPath = path.resolve(__dirname, "../build/udidetect/udidetect");
var udidetectPath = path.resolve(__dirname, "../../../build/udidetect/udidetect");
var udiddetectProc = exec(udidetectPath, { maxBuffer: 524288, timeout: 3000 }, function(err, stdout) {
if (stdout && stdout.length > 2) {
this.udid = stdout.replace("\n","");