Conver profile, machine, result, and test to send to the client
Matches * most * of the existing Client layout from EtherBench, barring name changes, the addition of dev/base options, the book name, the book source (Newly saved in Repo), an some extra id's to send back.
This commit is contained in:
1 parent
526588c594
commit
00f3ca3e04
1 file changed
+35
-1
+35
-1
@@ -152,4 +152,38 @@ def getWorkload(machine):
|
||||
options = options[1:]
|
||||
|
||||
def getResults(machine, test):
|
||||
pass
|
||||
pass
|
||||
|
||||
def workloadDictionary(profile, machine, result, test):
|
||||
|
||||
# Worker will send back the id of each model for ease of
|
||||
# updating. Worker needs test information, as well as the
|
||||
# specification for both engines. Group the dev and base
|
||||
# options with the coressponding engine, for easy usage
|
||||
return {
|
||||
'profile' : { 'id' : profile.id, },
|
||||
'machine' : { 'id' : machine.id, },
|
||||
'result' : { 'id' : result.id, },
|
||||
'test' : {
|
||||
'id' : test.id,
|
||||
'bookname' : test.bookname,
|
||||
'booksource' : FRAMEWORK_REPO_URL + '/raw/master/Books/'
|
||||
'timecontrol' : test.timecontrol,
|
||||
'dev' : {
|
||||
'name' : test.dev.name,
|
||||
'source' : test.dev.source,
|
||||
'protocol' : test.dev.protocol,
|
||||
'sha' : test.dev.sha,
|
||||
'bench' : test.dev.bench,
|
||||
'options' : test.devoptions,
|
||||
},
|
||||
'base' : {
|
||||
'name' : test.base.name,
|
||||
'source' : test.base.source,
|
||||
'protocol' : test.base.protocol,
|
||||
'sha' : test.base.sha,
|
||||
'bench' : test.base.bench,
|
||||
'options' : test.base.baseoptions,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user