зеркало из https://github.com/mozilla/gecko-dev.git
Bug 783120 - Make datazilla import conditional on options.pref, r=mdas
This commit is contained in:
Родитель
1d480fb6bf
Коммит
4f5253c35b
|
@ -14,7 +14,6 @@ import socket
|
|||
import sys
|
||||
import time
|
||||
import platform
|
||||
import datazilla
|
||||
import xml.dom.minidom as dom
|
||||
|
||||
try:
|
||||
|
@ -107,7 +106,8 @@ class MarionetteTextTestRunner(unittest.TextTestRunner):
|
|||
timeTaken = stopTime - startTime
|
||||
result.printErrors()
|
||||
result.printLogs(test)
|
||||
result.getPerfData(test)
|
||||
if options.perf:
|
||||
result.getPerfData(test)
|
||||
if hasattr(result, 'separator2'):
|
||||
self.stream.writeln(result.separator2)
|
||||
run = result.testsRun
|
||||
|
@ -359,6 +359,7 @@ class MarionetteTestRunner(object):
|
|||
|
||||
manifest = TestManifest()
|
||||
manifest.read(filepath)
|
||||
|
||||
if options.perf:
|
||||
if options.perfserv is None:
|
||||
options.perfserv = manifest.get("perfserv")[0]
|
||||
|
@ -604,6 +605,9 @@ if __name__ == "__main__":
|
|||
if options.emulator and not options.logcat_dir:
|
||||
options.logcat_dir = 'logcat'
|
||||
|
||||
if options.perf:
|
||||
import datazilla
|
||||
|
||||
# check for valid resolution string, strip whitespaces
|
||||
try:
|
||||
dims = options.emulator_res.split('x')
|
||||
|
|
Загрузка…
Ссылка в новой задаче