Pass quiet flag to fruitstrap when appium in quiet mode.

If appium is started with the quiet flag, this will now be propagated to
the fruitstrap install command.  Fruitstap can be very noisy when
installing app with a large number of resources in the bundle.
This commit is contained in:
Ethan Goldblum
2014-03-18 12:47:52 -07:00
parent 678a6a5345
commit 3de0e8ab84
+2 -1
View File
@@ -1236,7 +1236,8 @@ IOS.prototype.removeApp = function (bundleId, cb) {
IOS.prototype.installApp = function (unzippedAppPath, cb) {
if (this.args.udid) {
var installationCommand = fruitstrap + ' install --id ' + this.args.udid + ' --bundle ' + unzippedAppPath;
var installQuietFlag = this.args.quiet ? ' -q' : '';
var installationCommand = fruitstrap + installQuietFlag + ' install --id ' + this.args.udid + ' --bundle ' + unzippedAppPath;
deviceCommon.installApp(installationCommand, this.args.udid, unzippedAppPath, cb);
} else {
cb(new Error("You can not call installApp for the iOS simulator!"));