A common solution for developers using Linux distributions were
/usr/bin/python is linked to /usr/bin/python3 is to put a python ->
python2 symlink earlier in the PATH when working with python2-only
projects. This doesn't work when shebangs bypasses any environment
configuration.
The change was generated by executing:
sed -i 's|#!/usr/bin/python|#!/usr/bin/env python|' \
$(grep -rl '#!/usr/bin/python' build)
Change-Id: I2de77532fd31a0348ec58f4d9af4b7172dc1b9ed
Reviewed-on: https://chromium-review.googlesource.com/559347
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Ingemar Ådahl <ingemara@opera.com>
Cr-Original-Commit-Position: refs/heads/master@{#484266}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 504c076b196be39b9083a6cab1c9dee11a66b33e
The default depot_tools pylintrc disables some checks that we can
reasonably enable in build/android/. This CL does so.
BUG=
Review URL: https://codereview.chromium.org/1315743004
Cr-Original-Commit-Position: refs/heads/master@{#347720}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 58b4d3677418a2360c23e118199f5cf8992d4178
Added fractional line coverage to line by line coverage information so that the fractional line coverage will be available in generated JSON files.
Changed logging level of skipped files.
BUG=
Review URL: https://codereview.chromium.org/1284083004
Cr-Original-Commit-Position: refs/heads/master@{#343944}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 39bc8c2a5c6a7b9b4f97d2b29359e151b9ccf402
When EMMA files are missing (i.e. the emma_filter didn't cover the java
source file that was changed) the script should still run properly.
Handled missing EMMA files by skipping them and only running coverage
stats on source files that have corresponding EMMA files.
Also updated tests.
BUG=
Review URL: https://codereview.chromium.org/1299693003
Cr-Original-Commit-Position: refs/heads/master@{#343917}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7d5973f6998a87987c474585fe1ac3179a39480b
Sample Usage:
build/android/coverage.py -v --out <output file path> --emma-dir <EMMA file directory> --lines-for-coverage-file <path to file containing lines for coverage>
This CL adds the ability to generate code coverage reports for Java code. To use this script, a JSON file should exist that maps file paths to lists of integers, representing the lines that have changed for each file (i.e. incremental changes).
The generated report contains overall coverage, coverage for the lines specified in the input file, and line by line coverage for each file included in the input file.
BUG=501536
Review URL: https://codereview.chromium.org/1216033009
Cr-Original-Commit-Position: refs/heads/master@{#341437}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 67aa871b52c94f30b52ef19fa71388a54fc3410f
This CL contains the first part of a script that will be used to
generate code coverage stats for Java code. The coverage tool used,
EMMA, only provides line by line coverage information in the form of
HTML reports, so this CL handles parsing these files.
BUG=501536
Review URL: https://codereview.chromium.org/1211243016
Cr-Original-Commit-Position: refs/heads/master@{#340833}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cf902beeaf9f13167abe9d5631ae1d3be9303d92