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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user