base.py (926B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 5 import os 6 7 from marionette_harness import BaseMarionetteTestRunner, MarionetteTestCase 8 9 10 class FirefoxUITestRunner(BaseMarionetteTestRunner): 11 def __init__(self, **kwargs): 12 super().__init__(**kwargs) 13 14 # select the appropriate GeckoInstance 15 self.app = "fxdesktop" 16 17 # low-noise log messages useful in tests 18 # TODO: should be moved to individual tests once bug 1386810 19 # is fixed 20 moz_log = "" 21 if "MOZ_LOG" in os.environ: 22 moz_log = os.environ["MOZ_LOG"] 23 if len(moz_log) > 0: 24 moz_log += "," 25 moz_log += "UrlClassifierStreamUpdater:1" 26 os.environ["MOZ_LOG"] = moz_log 27 28 self.test_handlers = [MarionetteTestCase]