Relocate books; split up books.json
First step towards a more modular config schemea. Books moved to AndyGrant/openbench-books. Those books will _never_ be deleted. Update workload dict. to avoid duplicate json fields for book names
This commit is contained in:
1 parent
98090b7ad3
commit
5d8704d896
21 files changed
+43
-58
No files matched your search
+1
-1
@@ -63,7 +63,7 @@ OPENBENCH_CONFIG = {
|
||||
},
|
||||
|
||||
# Take a look at Books/books.json
|
||||
'books' : load_json_config('Books', 'books.json'),
|
||||
'books' : load_folder_of_configs('Books'),
|
||||
|
||||
# Take a look at json file in Engines/
|
||||
'engines' : load_folder_of_configs('Engines'),
|
||||
|
||||
@@ -50,7 +50,6 @@ def get_workload(machine):
|
||||
machine.workload = test.id; machine.save(); result.save()
|
||||
return { 'workload' : workload_to_dictionary(test, result, machine) }
|
||||
|
||||
|
||||
def select_workload(machine):
|
||||
|
||||
# Find valid workloads, given the current distribution of workers
|
||||
@@ -169,7 +168,12 @@ def workload_to_dictionary(test, result, machine):
|
||||
'win_adj' : test.win_adj,
|
||||
'draw_adj' : test.draw_adj,
|
||||
'workload_size' : test.workload_size,
|
||||
'book' : OPENBENCH_CONFIG['books'][test.book_name],
|
||||
}
|
||||
|
||||
workload['test']['book'] = {
|
||||
'name' : test.book_name,
|
||||
'sha' : OPENBENCH_CONFIG['books'][test.book_name]['sha'],
|
||||
'source' : OPENBENCH_CONFIG['books'][test.book_name]['source'],
|
||||
}
|
||||
|
||||
workload['test']['dev'] = {
|
||||
|
||||
Reference in new issue
Block a user