Print the coverage report location at the end of acov-llvm.py report.

This makes it easier to identify the directory where the coverage
report data of the latest `acov-llvm.py report` was written,
especially when the current directory already contains previous
coverage reports.

Test: acov-llvm.py report
Bug: 160401633
Change-Id: I96fc860940f5be11c4c3b702dfce74226afabfce
This commit is contained in:
Roland Levillain
2021-05-21 17:18:46 +01:00
parent 0b1aa4958f
commit d2f1236a6e

View File

@@ -183,12 +183,16 @@ def do_report(args):
object_flags = [args.binary[0]] + ['--object=' + b for b in args.binary[1:]]
source_dirs = ['/proc/self/cwd/' + s for s in args.source_dir]
output_dir = f'{temp_dir}/html'
check_output([
str(LLVM_COV_PATH), 'show', f'--instr-profile={profdata}',
'--format=html', f'--output-dir={temp_dir}/html',
'--format=html', f'--output-dir={output_dir}',
'--show-region-summary=false'
] + object_flags + source_dirs)
print(f'Coverage report data written in {output_dir}')
def parse_args():
parser = argparse.ArgumentParser()