diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-05-29 03:01:10 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-05-29 03:01:10 +0000 |
commit | 50697a898ac326dda6a192220e9f58494b202a43 (patch) | |
tree | a2e0961b76cac790791b26c0263b396a857f242a | |
parent | 3549714d92167ced7be35e23d31b91ac17a18aad (diff) | |
parent | a4b29447993293da2c15d641cc349f00416451b1 (diff) | |
download | development-50697a898ac326dda6a192220e9f58494b202a43.tar.gz |
Snap for 7408768 from a4b29447993293da2c15d641cc349f00416451b1 to sc-release
Change-Id: I8a5c3e6332083a0ecd380f6c12497b43ddfef142
-rwxr-xr-x | scripts/acov-llvm.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/acov-llvm.py b/scripts/acov-llvm.py index a5b34c0d4..063911f1a 100755 --- a/scripts/acov-llvm.py +++ b/scripts/acov-llvm.py @@ -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() |