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

Issue 2003213002: Made junit coverage-dir take directory, not file. (Closed)

Created:
4 years, 7 months ago by BigBossZhiling
Modified:
4 years, 6 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

Made junit coverage-dir take directory, not file. --coverage-dir option for junit tests should take directory name, not file name. With the change, we are able to run the command like this: 'out-gn/Debug/bin/run_clank_junit_tests --coverage-dir /tmp/coverage/junit'. Then clank_junit_test.ec will be created in the junit directory. BUG= Committed: https://crrev.com/f9b5e71a566772a1a80d3e670ed584f60bce71df Cr-Commit-Position: refs/heads/master@{#395936}

Patch Set 1 #

Patch Set 2 : fixes #

Total comments: 4

Patch Set 3 : create directory if not already existing #

Total comments: 3

Patch Set 4 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M build/android/pylib/junit/test_runner.py View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
BigBossZhiling
4 years, 7 months ago (2016-05-23 22:29:22 UTC) #3
jbudorick
https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: jvm_args.append('-Demma.coverage.out.file=%s' % os.path.join( This should check that self._coverage_dir exists ...
4 years, 6 months ago (2016-05-24 12:35:18 UTC) #4
BigBossZhiling
https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: jvm_args.append('-Demma.coverage.out.file=%s' % os.path.join( On 2016/05/24 12:35:18, jbudorick wrote: > ...
4 years, 6 months ago (2016-05-24 17:41:33 UTC) #5
jbudorick
https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: jvm_args.append('-Demma.coverage.out.file=%s' % os.path.join( On 2016/05/24 17:41:33, BigBossZhiling wrote: > ...
4 years, 6 months ago (2016-05-24 19:15:09 UTC) #6
BigBossZhiling
4 years, 6 months ago (2016-05-24 19:28:30 UTC) #7
BigBossZhiling
https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/20001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: jvm_args.append('-Demma.coverage.out.file=%s' % os.path.join( On 2016/05/24 19:15:09, jbudorick wrote: > ...
4 years, 6 months ago (2016-05-24 19:28:52 UTC) #8
jbudorick
lgtm w nit https://codereview.chromium.org/2003213002/diff/40001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/40001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: if not os.path.isdir(self._coverage_dir): nit: os.path.exists although ...
4 years, 6 months ago (2016-05-24 19:33:21 UTC) #9
BigBossZhiling
https://codereview.chromium.org/2003213002/diff/40001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/40001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: if not os.path.isdir(self._coverage_dir): On 2016/05/24 19:33:21, jbudorick wrote: > ...
4 years, 6 months ago (2016-05-25 02:00:20 UTC) #10
jbudorick
https://codereview.chromium.org/2003213002/diff/40001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2003213002/diff/40001/build/android/pylib/junit/test_runner.py#newcode50 build/android/pylib/junit/test_runner.py:50: if not os.path.isdir(self._coverage_dir): On 2016/05/25 02:00:20, BigBossZhiling wrote: > ...
4 years, 6 months ago (2016-05-25 13:11:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003213002/60001
4 years, 6 months ago (2016-05-25 17:07:56 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-05-25 18:20:23 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-05-25 18:21:46 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f9b5e71a566772a1a80d3e670ed584f60bce71df
Cr-Commit-Position: refs/heads/master@{#395936}

Powered by Google App Engine
This is Rietveld 408576698