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

Issue 144093008: Add --out-dir command line option to test_runner.py. (Closed)

Created:
6 years, 11 months ago by jbudorick
Modified:
6 years, 2 months ago
Reviewers:
craigdh, frankf
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add --out-dir command line option to test_runner.py. BUG=294427 NOTRY=True closed: superseded by https://codereview.chromium.org/639853002/

Patch Set 1 #

Patch Set 2 : Add an --out-dir command line flag. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M build/android/pylib/constants.py View 1 1 chunk +4 lines, -0 lines 2 comments Download
M build/android/test_runner.py View 1 2 chunks +5 lines, -0 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
jbudorick
If --test-apk is passed a path to an actual apk file, test_runner will now attempt ...
6 years, 11 months ago (2014-01-22 00:47:04 UTC) #1
frankf
Hmm. So the problem in the bug is that there are potentially multiple 'out' directories. ...
6 years, 11 months ago (2014-01-22 18:48:43 UTC) #2
jbudorick
On 2014/01/22 18:48:43, frankf wrote: > Hmm. So the problem in the bug is that ...
6 years, 11 months ago (2014-01-23 00:09:54 UTC) #3
jbudorick
6 years, 11 months ago (2014-01-23 00:36:12 UTC) #4
frankf
https://codereview.chromium.org/144093008/diff/60001/build/android/pylib/constants.py File build/android/pylib/constants.py (right): https://codereview.chromium.org/144093008/diff/60001/build/android/pylib/constants.py#newcode152 build/android/pylib/constants.py:152: def GetOutDirectory(build_type=None): Craig changed this recently. It doesn't make ...
6 years, 11 months ago (2014-01-23 00:54:35 UTC) #5
jbudorick
https://codereview.chromium.org/144093008/diff/60001/build/android/pylib/constants.py File build/android/pylib/constants.py (right): https://codereview.chromium.org/144093008/diff/60001/build/android/pylib/constants.py#newcode152 build/android/pylib/constants.py:152: def GetOutDirectory(build_type=None): On 2014/01/23 00:54:36, frankf wrote: > Craig ...
6 years, 11 months ago (2014-01-24 17:52:50 UTC) #6
frankf
cc'ing some people who might have an opinion on this: - iancottrell who's working on ...
6 years, 11 months ago (2014-01-24 18:39:04 UTC) #7
Nico
Can't you infer the out dir from the --test-apk=out/Debug/apks/ChromeTest.apk parameter? +1 on not using env ...
6 years, 11 months ago (2014-01-24 18:50:58 UTC) #8
frankf
On 2014/01/24 18:50:58, Nico wrote: > Can't you infer the out dir from the --test-apk=out/Debug/apks/ChromeTest.apk ...
6 years, 11 months ago (2014-01-24 18:57:32 UTC) #9
ian_cottrell
On 2014/01/24 18:57:32, frankf wrote: > On 2014/01/24 18:50:58, Nico wrote: > > Can't you ...
6 years, 11 months ago (2014-01-24 20:06:54 UTC) #10
jbudorick
6 years, 11 months ago (2014-01-24 20:12:40 UTC) #11
On 2014/01/24 20:06:54, ian_cottrell wrote:
> On 2014/01/24 18:57:32, frankf wrote:
> > On 2014/01/24 18:50:58, Nico wrote:
> > > Can't you infer the out dir from the
> --test-apk=out/Debug/apks/ChromeTest.apk
> > > parameter?
> > > 
> > > +1 on not using env vars more.
> > 
> > There are different types of tests on Android, not all test --test-apk
> > There should be a common option.
> 
> +1 on killing all use of env vars
> 
> if you specify the out dir, you could (optionally) remove the need to specify
it
> again in the apk part
> 
>   --out=out/Debug --test-apk=ChromeTest
> 
> in theory is sufficient?

The first patch in this review partially did what you two have suggested here.
I'm not sure if it's a great idea to implicitly grab the value of one parameter
from another.

Also, at the moment, I don't think the script even works correctly if you _do_
specify the out dir in the apk part. (Obviously, that can be changed.)

Powered by Google App Engine
This is Rietveld 408576698