os.unlink(file_name)
# extract
+ dprnt('opening tar for extraction')
with TarFile.open(mode=extract_mode, name=temp_file.name,
debug=tar_debug,
new_volume_handler=new_volume_handler) as tarobj:
if n_runs == 0:
print('summary: no test run has finished')
else:
- print('summary: {} runs, in {}s ({:.3f}s per run); '
+ print('summary: {} runs, in {:.3f}s ({:.3f}s per run); '
'{} with errs ({:.0f}%)'
.format(n_runs, duration, duration/n_runs, n_errs,
100.0 * float(n_errs)/float(n_runs)))
- print('params that created errors')
- for params in error_params:
- print(params)
+ if error_params:
+ print('params that created errors')
+ for params in error_params:
+ print(params)
if __name__ == '__main__':