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

Issue 1957023002: Add directory option for JUnit coverage files. (Closed)

Created:
4 years, 7 months ago by BigBossZhiling
Modified:
4 years, 7 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add directory option for JUnit coverage files. Added runtime option --coverage-dir to let the users decide where to store coverage.ec. BUG=608072 Committed: https://crrev.com/de08f6f711ebd74fe493584e0694bcce51693318 Cr-Commit-Position: refs/heads/master@{#392727}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added prefix of JVM to be more clear. #

Total comments: 6

Patch Set 3 : changed to use argparse #

Patch Set 4 : doesn't work version #

Total comments: 4

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : fixed incremental build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -8 lines) Patch
M build/android/gyp/create_java_binary_script.py View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M build/android/gyp/javac.py View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M build/android/pylib/junit/test_runner.py View 1 2 3 4 5 6 2 chunks +19 lines, -7 lines 0 comments Download
M build/android/test_runner.py View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (6 generated)
BigBossZhiling
JUnit coverage-dir can be set now. For example, we can set it in the following ...
4 years, 7 months ago (2016-05-07 01:09:05 UTC) #2
BigBossZhiling
https://codereview.chromium.org/1957023002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/1/build/android/gyp/create_java_binary_script.py#newcode40 build/android/gyp/create_java_binary_script.py:40: jvm_arguments = [ x for x in sys.argv[1:] if ...
4 years, 7 months ago (2016-05-07 01:12:01 UTC) #3
BigBossZhiling
4 years, 7 months ago (2016-05-07 01:12:02 UTC) #4
BigBossZhiling
4 years, 7 months ago (2016-05-07 01:12:03 UTC) #5
jbudorick
https://codereview.chromium.org/1957023002/diff/1/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/1/build/android/gyp/create_java_binary_script.py#newcode42 build/android/gyp/create_java_binary_script.py:42: java_cmd.extend(jvm_arguments) Why is this split necessary? https://codereview.chromium.org/1957023002/diff/1/build/android/test_runner.py File build/android/test_runner.py ...
4 years, 7 months ago (2016-05-09 18:08:09 UTC) #6
BigBossZhiling
4 years, 7 months ago (2016-05-09 19:37:18 UTC) #7
mikecase (-- gone --)
https://codereview.chromium.org/1957023002/diff/20001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/20001/build/android/gyp/create_java_binary_script.py#newcode41 build/android/gyp/create_java_binary_script.py:41: jvm_arguments = [ x[3:] for x in sys.argv[1:] if ...
4 years, 7 months ago (2016-05-09 21:11:46 UTC) #9
jbudorick
https://codereview.chromium.org/1957023002/diff/20001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/20001/build/android/gyp/create_java_binary_script.py#newcode40 build/android/gyp/create_java_binary_script.py:40: # JVM argumments have prefix JVM. Let's try something ...
4 years, 7 months ago (2016-05-09 21:13:40 UTC) #10
BigBossZhiling
https://codereview.chromium.org/1957023002/diff/20001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/20001/build/android/gyp/create_java_binary_script.py#newcode41 build/android/gyp/create_java_binary_script.py:41: jvm_arguments = [ x[3:] for x in sys.argv[1:] if ...
4 years, 7 months ago (2016-05-09 21:14:19 UTC) #11
BigBossZhiling
4 years, 7 months ago (2016-05-09 21:14:20 UTC) #12
BigBossZhiling
4 years, 7 months ago (2016-05-09 21:14:22 UTC) #13
BigBossZhiling
clank_junit_tests: error: unrecognized arguments: -test-jars clank_junit_tests.jar -json-results-file /tmp/tmpwCcc_8 -Demma.coverage.out.file=/tmp/this_is_kidding_coverage.ec argparse thinks that "-test-jars clank_junit_tests.jar -json-results-file ...
4 years, 7 months ago (2016-05-09 23:33:11 UTC) #14
jbudorick
https://codereview.chromium.org/1957023002/diff/60001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/60001/build/android/gyp/create_java_binary_script.py#newcode43 build/android/gyp/create_java_binary_script.py:43: parser.add_argument('-jar-args', nargs='*') This should be --jar-args and the nargs ...
4 years, 7 months ago (2016-05-09 23:51:49 UTC) #15
jbudorick
https://codereview.chromium.org/1957023002/diff/60001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/1957023002/diff/60001/build/android/pylib/junit/test_runner.py#newcode35 build/android/pylib/junit/test_runner.py:35: command.append('-jar-args') On 2016/05/09 23:51:49, jbudorick wrote: > This should ...
4 years, 7 months ago (2016-05-10 18:34:11 UTC) #16
BigBossZhiling
Please take a look. Thx!
4 years, 7 months ago (2016-05-10 18:54:09 UTC) #17
mikecase (-- gone --)
https://codereview.chromium.org/1957023002/diff/80001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/80001/build/android/gyp/create_java_binary_script.py#newcode47 build/android/gyp/create_java_binary_script.py:47: jvm_arguments = args.jvm_args[1:-1].split() Are you stripping off the quotes ...
4 years, 7 months ago (2016-05-10 19:24:46 UTC) #18
BigBossZhiling
https://codereview.chromium.org/1957023002/diff/80001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/80001/build/android/gyp/create_java_binary_script.py#newcode47 build/android/gyp/create_java_binary_script.py:47: jvm_arguments = args.jvm_args[1:-1].split() On 2016/05/10 19:24:46, mikecase wrote: > ...
4 years, 7 months ago (2016-05-10 19:34:26 UTC) #19
mikecase (-- gone --)
One final nit, lgtm https://codereview.chromium.org/1957023002/diff/100001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/1957023002/diff/100001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: args.append('-Demma.coverage.out.file=' + self._coverage_dir) super picky ...
4 years, 7 months ago (2016-05-10 19:41:14 UTC) #20
jbudorick
https://codereview.chromium.org/1957023002/diff/100001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/100001/build/android/gyp/create_java_binary_script.py#newcode47 build/android/gyp/create_java_binary_script.py:47: jvm_arguments = args.jvm_args.strip('"').split() Was stripping necessary?
4 years, 7 months ago (2016-05-10 19:42:10 UTC) #21
BigBossZhiling
https://codereview.chromium.org/1957023002/diff/100001/build/android/gyp/create_java_binary_script.py File build/android/gyp/create_java_binary_script.py (right): https://codereview.chromium.org/1957023002/diff/100001/build/android/gyp/create_java_binary_script.py#newcode47 build/android/gyp/create_java_binary_script.py:47: jvm_arguments = args.jvm_args.strip('"').split() On 2016/05/10 19:42:10, jbudorick wrote: > ...
4 years, 7 months ago (2016-05-10 20:21:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957023002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957023002/120001
4 years, 7 months ago (2016-05-10 20:24:34 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-10 21:35:30 UTC) #26
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/de08f6f711ebd74fe493584e0694bcce51693318 Cr-Commit-Position: refs/heads/master@{#392727}
4 years, 7 months ago (2016-05-10 21:38:30 UTC) #28
Marc Treib
This CL breaks the build for me, with messages like: FAILED: gen/third_party/gif_player/gif_player_java__compile_java__javac.d gen/third_party/gif_player/gif_player_java__compile_java.javac.jar gen/third_party/gif_player/gif_player_java__compile_java.javac.jar.md5.stamp gen/third_party/gif_player/gif_player_java__compile_java.javac.jar.pdb ...
4 years, 7 months ago (2016-05-11 11:50:42 UTC) #29
jbudorick
On 2016/05/11 11:50:42, Marc Treib wrote: > This CL breaks the build for me, with ...
4 years, 7 months ago (2016-05-11 13:12:58 UTC) #30
jbudorick
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1973503002/ by jbudorick@chromium.org. ...
4 years, 7 months ago (2016-05-11 13:13:20 UTC) #31
BigBossZhiling
Fixed incremental build.
4 years, 7 months ago (2016-05-11 22:12:56 UTC) #33
jbudorick
4 years, 7 months ago (2016-05-11 22:13:44 UTC) #34
On 2016/05/11 22:12:56, BigBossZhiling wrote:
> Fixed incremental build.

upload it as a new CL with what originally landed as patchset 1 & the revised
version as patchset 2

Powered by Google App Engine
This is Rietveld 408576698