Bug 1422887 - AWFY - remove pyflakes warnings, r=bbouvier

This commit is contained in:
Bob Clary 2018-01-07 14:21:51 -08:00
Родитель bf403354e5
Коммит a773d590c7
10 изменённых файлов: 6 добавлений и 27 удалений

Просмотреть файл

@ -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()