Fix updater
This commit is contained in:
Родитель
2446ac144c
Коммит
e9f2dc9c59
|
@ -172,6 +172,14 @@ class Context(object):
|
|||
return o
|
||||
|
||||
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 = { }
|
||||
for b in self.benchmarks:
|
||||
o[b.name] = b.export()
|
||||
|
|
|
@ -340,6 +340,15 @@ def export_master(cx):
|
|||
with open(path, 'w') as fp:
|
||||
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):
|
||||
for machine in cx.machines:
|
||||
# Don't try to update machines that we're no longer tracking.
|
||||
|
|
Загрузка…
Ссылка в новой задаче