summaryrefslogtreecommitdiff
path: root/tko/machine_test_attribute_graph.cgi
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-10-01 14:54:18 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-10-01 14:54:18 +0000
commita1c3ed9005a31f0d95f92992fe13a901ae3319f9 (patch)
treedf82903cb7043540ad6607079e90d1f8f2a611be /tko/machine_test_attribute_graph.cgi
parent64be31fcf8c3ab2d217f79680a62c0da79866e3e (diff)
Add a proper machine table rather than just using the hostname
Should have done this in the first place ;-( Added a new machine class to frontend, etc as well. THIS WILL NECESSITATE REBUILDING THE DATABASE Signed-off-by: Martin J. Bligh <mbligh@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@730 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/machine_test_attribute_graph.cgi')
-rwxr-xr-xtko/machine_test_attribute_graph.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/tko/machine_test_attribute_graph.cgi b/tko/machine_test_attribute_graph.cgi
index 8bff1d53..8a16a6b6 100755
--- a/tko/machine_test_attribute_graph.cgi
+++ b/tko/machine_test_attribute_graph.cgi
@@ -17,12 +17,14 @@ db = db.db()
def main():
form = cgi.FieldStorage()
- machine = form["machine"].value
+ machine_idx = form["machine"].value
benchmark = form["benchmark"].value
key = form["key"].value
+ machine = frontend.machine.select(db, {'machine_idx' : machine_idx})[0]
+
data = {}
- where = { 'subdir' : benchmark, 'machine' : machine }
+ where = { 'subdir' : benchmark, 'machine_idx' : machine.idx }
for test in frontend.test.select(db, where):
iterations = test.iterations()
if iterations.has_key(key):
@@ -30,7 +32,7 @@ def main():
# for kernel in sort_kernels(data.keys()):
# print "%s %s" % (kernel, str(data[kernel]))
- title = "%s on %s" % (benchmark, machine)
+ title = "%s on %s" % (benchmark, machine.hostname)
graph = plotgraph.gnuplot(title, 'Kernel', key, xsort = sort_kernels)
graph.add_dataset('all kernels', data)
graph.plot(cgi_header = True)