@@ -19,20 +19,22 @@ def run(compile, test):
19
19
}
20
20
compile_job_config = RaftJobConfig (file_path = compile , substitutions = substitutions )
21
21
22
- compile_task = compile_job_config .config ['tasks' ][0 ]
22
+ compile_task = compile_job_config .config ['testtasks' ][ ' tasks' ][0 ]
23
23
#use first task as template and create 30 compile task
24
24
compile_tasks = []
25
25
for t in range (30 ):
26
26
new_task = copy .deepcopy (compile_task )
27
27
new_task ['outputFolder' ] = compile_task ['outputFolder' ] + f"-{ t } "
28
+ new_task ['toolConfiguration' ]['compileConfiguration' ] = {}
28
29
new_task ['toolConfiguration' ]['compileConfiguration' ]['mutationsSeed' ] = random .randint (0 , 1000 )
29
30
compile_tasks .append (new_task )
30
31
31
- compile_job_config .config ['tasks' ] = compile_tasks
32
+ compile_job_config .config ['testtasks' ][ ' tasks' ] = compile_tasks
32
33
33
34
print ('Compile' )
34
35
# create a new job with the Compile config and get new job ID
35
36
# in compile_job
37
+ compile_json = json .dumps (compile_job_config .config )
36
38
compile_job = cli .new_job (compile_job_config )
37
39
# wait for a job with ID from compile_job to finish the run
38
40
cli .poll (compile_job ['jobId' ])
@@ -42,8 +44,8 @@ def run(compile, test):
42
44
print ('Test' )
43
45
test_job_config = RaftJobConfig (file_path = test , substitutions = substitutions )
44
46
45
- task_test_fuzz_lean = test_job_config .config ['tasks' ][0 ]
46
- task_test = test_job_config .config ['tasks' ][1 ]
47
+ task_test_fuzz_lean = test_job_config .config ['testtasks' ][ ' tasks' ][0 ]
48
+ task_test = test_job_config .config ['testtasks' ][ ' tasks' ][1 ]
47
49
test_tasks = []
48
50
for t in range (30 ):
49
51
new_task_test = copy .deepcopy (task_test )
@@ -58,11 +60,10 @@ def run(compile, test):
58
60
test_tasks .append (new_task_test )
59
61
test_tasks .append (new_task_test_fuzz_lean )
60
62
61
- test_job_config .config ['tasks' ] = test_tasks
63
+ test_job_config .config ['testtasks' ][ ' tasks' ] = test_tasks
62
64
test_job = cli .new_job (test_job_config )
63
65
cli .poll (test_job ['jobId' ])
64
66
65
67
if __name__ == "__main__" :
66
- host = sys .argv [1 ]
67
- run (os .path .join (cur_dir , "compile-60.json" ),
68
- os .path .join (cur_dir , "test-60.json" ))
68
+ run (os .path .join (cur_dir , "compile-60.json" ),
69
+ os .path .join (cur_dir , "test-60.json" ))
0 commit comments