Bug 1422887 - AWFY - remove pyflakes warnings, r=bbouvier
This commit is contained in:
Родитель
bf403354e5
Коммит
a773d590c7
|
@ -1,9 +1,7 @@
|
|||
import json
|
||||
import logging
|
||||
import os
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
import utils
|
||||
|
@ -110,7 +108,6 @@ class WebAudio(Benchmark):
|
|||
|
||||
def process_results(self, results):
|
||||
ret = []
|
||||
total = 0
|
||||
for item in results:
|
||||
if item['name'] == "Geometric Mean":
|
||||
item['name'] = "__total__"
|
||||
|
@ -131,7 +128,6 @@ class UnityWebGL(Benchmark):
|
|||
|
||||
def process_results(self, results):
|
||||
ret = []
|
||||
total = 0
|
||||
for item in results:
|
||||
if item['benchmark'] == "Geometric Mean":
|
||||
item['benchmark'] = "__total__"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import logging
|
||||
import sys
|
||||
import time
|
||||
|
||||
sys.path.insert(1, '../driver')
|
||||
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
sys.path.insert(1, '../driver')
|
||||
import submitter
|
||||
import utils
|
||||
|
||||
class Benchmark(object):
|
||||
|
|
|
@ -6,7 +6,6 @@ import os
|
|||
import platform
|
||||
import shutil
|
||||
import socket
|
||||
import sys
|
||||
import urllib
|
||||
|
||||
import utils
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(1, '../driver')
|
||||
import utils
|
||||
|
||||
#TODO: move into builder
|
||||
#with utils.chdir(os.path.join(utils.config.RepoPath, self.source)):
|
||||
|
|
|
@ -11,7 +11,6 @@ import sys
|
|||
import tarfile
|
||||
import urllib
|
||||
import urllib2
|
||||
import zipfile
|
||||
|
||||
from optparse import OptionParser
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
from mozprofile.profile import FirefoxProfile
|
||||
|
|
|
@ -155,7 +155,6 @@ class V8GIT(GIT):
|
|||
with chdir(self.path()):
|
||||
Run(['git', 'pull', 'origin', 'master'])
|
||||
|
||||
env = os.environ.copy()
|
||||
with chdir(self.path()):
|
||||
Run(['gclient', 'sync'], self.make_env())
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import signal
|
||||
import stat
|
||||
import subprocess
|
||||
import time
|
||||
|
@ -84,8 +85,8 @@ class Runner(object):
|
|||
|
||||
def find(self, path, file):
|
||||
paths = subprocess.check_output(["find", path])
|
||||
paths = [path.rstrip() for path in paths.splitlines()]
|
||||
return [path for path in paths if path.endswith(file)]
|
||||
paths = [p.rstrip() for p in paths.splitlines()]
|
||||
return [p for p in paths if p.endswith(file)]
|
||||
|
||||
def put(self, path, recursive=True):
|
||||
return path
|
||||
|
@ -117,7 +118,7 @@ class LinuxRunner(Runner):
|
|||
def install(self, exe):
|
||||
path = os.path.dirname(exe)
|
||||
paths = subprocess.check_output(["find", path])
|
||||
paths = [path.rstrip() for path in paths.splitlines()]
|
||||
paths = [p.rstrip() for p in paths.splitlines()]
|
||||
|
||||
utils.log_info(self.logger, "Setting executable bit for {} and children.".format(path))
|
||||
for path in paths:
|
||||
|
@ -142,7 +143,7 @@ class WindowsRunner(LinuxRunner):
|
|||
def install(self, exe):
|
||||
path = os.path.dirname(exe)
|
||||
paths = subprocess.check_output(["find", path])
|
||||
paths = [path.rstrip() for path in paths.splitlines()]
|
||||
paths = [p.rstrip() for p in paths.splitlines()]
|
||||
|
||||
utils.log_info(self.logger, "Setting executable bit for {} and children.".format(path))
|
||||
for path in paths:
|
||||
|
@ -187,7 +188,7 @@ class OSXRunner(Runner):
|
|||
else:
|
||||
path = os.path.dirname(exe)
|
||||
paths = subprocess.check_output(["find", path])
|
||||
paths = [path.rstrip() for path in paths.splitlines()]
|
||||
paths = [p.rstrip() for p in paths.splitlines()]
|
||||
|
||||
utils.log_info(self.logger, "Setting executable bit for {} and children.".format(path))
|
||||
for path in paths:
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
import BaseHTTPServer
|
||||
import hashlib
|
||||
import httplib
|
||||
import json
|
||||
import os
|
||||
import pickle
|
||||
import requests
|
||||
import signal
|
||||
import sys
|
||||
import urllib
|
||||
import urlparse
|
||||
|
||||
from SimpleHTTPServer import SimpleHTTPRequestHandler
|
||||
|
||||
import benchmarks_remote as benchmarks
|
||||
|
||||
import utils
|
||||
utils.config.init("awfy.config")
|
||||
translates = utils.config.benchmarkTranslates()
|
||||
|
|
Загрузка…
Ссылка в новой задаче