This commit is contained in:
Hannes Verschore 2017-03-07 02:57:46 -08:00
Родитель 2446ac144c
Коммит e9f2dc9c59
2 изменённых файлов: 17 добавлений и 0 удалений

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

@ -172,6 +172,14 @@ class Context(object):
return o return o
def exportSuites(self): def exportSuites(self):
o = { }
for b in self.benchmarks:
if b.visible == 2:
continue
o[b.name] = b.export()
return o
def exportSuitesAll(self):
o = { } o = { }
for b in self.benchmarks: for b in self.benchmarks:
o[b.name] = b.export() o[b.name] = b.export()

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

@ -340,6 +340,15 @@ def export_master(cx):
with open(path, 'w') as fp: with open(path, 'w') as fp:
fp.write(text) fp.write(text)
j["suites"] = cx.exportSuitesAll()
text = "var AWFYMaster = " + json.dumps(j) + ";\n"
path = os.path.join(awfy.path, 'auth-master.js')
if os.path.exists(path):
os.remove(path)
with open(path, 'w') as fp:
fp.write(text)
def update_all(cx): def update_all(cx):
for machine in cx.machines: for machine in cx.machines:
# Don't try to update machines that we're no longer tracking. # Don't try to update machines that we're no longer tracking.