@@ -159,7 +159,7 @@ def process_afl_test_cases(cargs):
159
159
" --directory " + cargs .code_dir +
160
160
" --output-file " +
161
161
def_dir + '/lcov/tracefile.lcov_base' ,
162
- cov_paths , cargs , LOG_ERRORS )
162
+ cov_paths [ 'log_file' ] , cargs , LOG_ERRORS )
163
163
164
164
# run all afl_files
165
165
for index , f in enumerate (afl_files ):
@@ -188,7 +188,7 @@ def process_afl_test_cases(cargs):
188
188
cargs .code_dir +
189
189
" --output-file " +
190
190
def_dir + '/lcov/tracefile.lcov_info' ,
191
- cov_paths , cargs , LOG_ERRORS )
191
+ cov_paths [ 'log_file' ] , cargs , LOG_ERRORS )
192
192
193
193
# merge base and info (and exclude, if needed)
194
194
if cargs .disable_lcov_exclude_pattern :
@@ -197,22 +197,22 @@ def process_afl_test_cases(cargs):
197
197
" --no-checksum -a " + def_dir + '/lcov/tracefile.lcov_base' +
198
198
" -a " + def_dir + '/lcov/tracefile.lcov_info' +
199
199
" --output-file " + def_dir + '/lcov/tracefile.lcov_info_final' ,
200
- cov_paths , cargs , WANT_OUTPUT )[1 ]
200
+ cov_paths [ 'log_file' ] , cargs , WANT_OUTPUT )[1 ]
201
201
else :
202
202
tmp_file = NamedTemporaryFile (delete = False )
203
203
run_cmd (cargs .lcov_path +
204
204
lcov_opts +
205
205
" --no-checksum -a " + def_dir + '/lcov/tracefile.lcov_base' +
206
206
" -a " + def_dir + '/lcov/tracefile.lcov_info' +
207
207
" --output-file " + tmp_file .name ,
208
- cov_paths , cargs , LOG_ERRORS )
208
+ cov_paths [ 'log_file' ] , cargs , LOG_ERRORS )
209
209
210
210
out_lines = run_cmd (cargs .lcov_path +
211
211
lcov_opts +
212
212
" --no-checksum -r " + tmp_file .name +
213
213
" " + cargs .lcov_exclude_pattern + " --output-file " +
214
214
def_dir + '/lcov/tracefile.lcov_info_final' ,
215
- cov_paths , cargs , WANT_OUTPUT )[1 ]
215
+ cov_paths [ 'log_file' ] , cargs , WANT_OUTPUT )[1 ]
216
216
if os .path .exists (tmp_file .name ):
217
217
os .unlink (tmp_file .name )
218
218
@@ -229,7 +229,7 @@ def process_afl_test_cases(cargs):
229
229
' --output-directory ' +
230
230
def_dir + '/web ' +
231
231
def_dir + '/lcov/tracefile.lcov_info_final' ,
232
- cov_paths , cargs , LOG_ERRORS )
232
+ cov_paths [ 'log_file' ] , cargs , LOG_ERRORS )
233
233
234
234
logr ("[+] Final lcov web report: %s" % web_link ,
235
235
cov_paths ['log_file' ], cargs )
@@ -276,10 +276,10 @@ def process_afl_test_cases(cargs):
276
276
### for the current AFL test case file
277
277
if run_once :
278
278
run_cmd (cargs .coverage_cmd .replace ('AFL_FILE' , f ),
279
- cov_paths , cargs , NO_OUTPUT )
279
+ cov_paths [ 'log_file' ] , cargs , NO_OUTPUT )
280
280
else :
281
281
out_lines = run_cmd (cargs .coverage_cmd .replace ('AFL_FILE' , f ),
282
- cov_paths , cargs , WANT_OUTPUT )[1 ]
282
+ cov_paths [ 'log_file' ] , cargs , WANT_OUTPUT )[1 ]
283
283
run_once = True
284
284
285
285
### generate the code coverage stats for this test case
0 commit comments