Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tools/sanitizers/sancov_formatter.py

Issue 1810043004: [Coverage] Add sancov_formatter unittest for split. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/sanitizers/sancov_formatter_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sanitizers/sancov_formatter.py
diff --git a/tools/sanitizers/sancov_formatter.py b/tools/sanitizers/sancov_formatter.py
index 3398610ca8addfe9ea3190c6d8c49637816401b3..4f3ea9e5cbdddad30f83083284a43f5a9eed6e00 100755
--- a/tools/sanitizers/sancov_formatter.py
+++ b/tools/sanitizers/sancov_formatter.py
@@ -401,7 +401,7 @@ def split(options):
json.dump(new_data, f, sort_keys=True)
-def main():
+def main(args=None):
parser = argparse.ArgumentParser()
parser.add_argument('--coverage-dir',
help='Path to the sancov output files.')
@@ -414,7 +414,7 @@ def main():
parser.add_argument('action', choices=['all', 'merge', 'split'],
help='Action to perform.')
- options = parser.parse_args()
+ options = parser.parse_args(args)
if options.action.lower() == 'all':
if not options.json_output:
print '--json-output is required'
« no previous file with comments | « no previous file | tools/sanitizers/sancov_formatter_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698