Bug 1037707 - Allow setting dmcli's verbose mode via environment variable. r=mcote
authorWilliam Lachance <wlachance@mozilla.com>
Mon, 14 Jul 2014 16:01:11 -0400
changeset 216076 3365fa0a849c478be30727ef96f58756ce69c0a7
parent 216075 4d30c250d375e9f5afb57565061a93507f33a419
child 216077 c90fe92f71649d01f2eecc75b7f646f4a0eb1520
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcote
bugs1037707
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1037707 - Allow setting dmcli's verbose mode via environment variable. r=mcote
testing/mozbase/mozdevice/mozdevice/dmcli.py
--- a/testing/mozbase/mozdevice/mozdevice/dmcli.py
+++ b/testing/mozbase/mozdevice/mozdevice/dmcli.py
@@ -148,17 +148,17 @@ class DMCli(object):
         if ret is None:
             ret = 0
 
         sys.exit(ret)
 
     def add_options(self, parser):
         parser.add_argument("-v", "--verbose", action="store_true",
                             help="Verbose output from DeviceManager",
-                            default=False)
+                            default=bool(os.environ.get('VERBOSE')))
         parser.add_argument("--host", action="store",
                             help="Device hostname (only if using TCP/IP, " \
                                 "defaults to TEST_DEVICE environment " \
                                 "variable if present)",
                             default=os.environ.get('TEST_DEVICE'))
         parser.add_argument("-p", "--port", action="store",
                             type=int,
                             help="Custom device port (if using SUTAgent or "