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