Skip to content
Snippets Groups Projects
Commit bce9c9b6 authored by Luke Grazette's avatar Luke Grazette
Browse files

Successful step 4

parent 5092ca77
No related branches found
No related tags found
1 merge request!2528[RTADPA BW Tests] Introducing an Hlt1-bandwidth test via Moore_in_Allen
Pipeline #6341232 failed
This commit is part of merge request !2528. Comments created here will be created in the context of that merge request.
......@@ -32,30 +32,21 @@ from inspect import signature
fname_helper = FileNameHelper(process="hlt1")
fname_helper.make_tmp_dirs()
options.output_file = fname_helper.mdf_fname_for_Moore(
stream_config="production")
stream_config="streamless").format(stream="streamless")
options.output_type = 'MDF'
options.output_manifest_file = fname_helper.tck(stream_config="production")
options.output_manifest_file = fname_helper.tck(stream_config="streamless")
def name(linedefn):
return signature(linedefn).parameters['name'].default
def make_module_streams():
linedict = { # stream per line to calculate line-similarity
name(line): [line]
for line in all_lines_functions()
}
# Write out stream configuration to JSON file for use later in the test
def make_lines():
with open(
fname_helper.stream_config_json_path(stream_config="production"),
fname_helper.stream_config_json_path(stream_config="streamless"),
'w') as f:
json.dump({k: [name(line) for line in v]
for k, v in linedict.items()},
f) #trivial json {name(line): [name(line)]}
return linedict
json.dump({"streamless": [name(line) for line in all_lines_functions()]}, f)
return [line() for line in all_lines_functions()]
options.scheduler_legacy_mode = False
run_moore(options, make_streams=make_module_streams)
run_moore(options, make_lines)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment