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

Issue 1794004: Added --test_args parameter that passes its value as -a flag to autoserv. (Closed)

Created:
10 years, 8 months ago by whywhat
Modified:
9 years, 7 months ago
Reviewers:
petkov, ericli
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

Added --test_args parameter that passes its value as -a flag to autoserv.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added handling of multiple parameters separated with comma #

Total comments: 7

Patch Set 3 : Parse --args with optparser in autotest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M src/scripts/autotest View 2 3 chunks +8 lines, -3 lines 0 comments Download
M src/scripts/run_remote_tests.sh View 1 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
whywhat
10 years, 8 months ago (2010-04-27 16:30:21 UTC) #1
petkov
Thanks for looking into this. A couple of comments. http://codereview.chromium.org/1794004/diff/1/2 File src/scripts/run_remote_tests.sh (right): http://codereview.chromium.org/1794004/diff/1/2#newcode25 src/scripts/run_remote_tests.sh:25: ...
10 years, 8 months ago (2010-04-27 16:45:52 UTC) #2
whywhat
http://codereview.chromium.org/1794004/diff/1/2 File src/scripts/run_remote_tests.sh (right): http://codereview.chromium.org/1794004/diff/1/2#newcode25 src/scripts/run_remote_tests.sh:25: DEFINE_string test_args "" "Command line arguments for test" On ...
10 years, 8 months ago (2010-04-27 17:25:04 UTC) #3
ericli
I hate to say that, but this is another good example to use src/script/autotest directly ...
10 years, 8 months ago (2010-04-27 17:28:55 UTC) #4
whywhat
I tried to pass args separated with commas and split them by comma in third_party/autotest/files/server/autoserv_parser.py ...
10 years, 8 months ago (2010-04-27 18:06:07 UTC) #5
petkov
On 2010/04/27 18:06:07, whywhat wrote: > I tried to pass args separated with commas and ...
10 years, 8 months ago (2010-04-27 20:52:50 UTC) #6
petkov
On 2010/04/27 17:28:55, ericli wrote: > I hate to say that, but this is another ...
10 years, 8 months ago (2010-04-27 20:54:17 UTC) #7
ericli
Yeah, this sounds like a bug inside hromeos-base/autotest ebuild. If you could figure out and ...
10 years, 8 months ago (2010-04-27 21:42:39 UTC) #8
ericli
I didn't actively look to port all run_remote_tests.sh functions into src/script/autotest. I assume you guys ...
10 years, 8 months ago (2010-04-27 21:43:56 UTC) #9
whywhat
Please, take another look. It works now, with one change in autotest ebuild. See http://codereview.chromium.org/1787008
10 years, 8 months ago (2010-04-28 12:43:50 UTC) #10
petkov
http://codereview.chromium.org/1794004/diff/12001/8003 File src/scripts/run_remote_tests.sh (right): http://codereview.chromium.org/1794004/diff/12001/8003#newcode17 src/scripts/run_remote_tests.sh:17: DEFINE_string args "" "Command line arguments for test, separated ...
10 years, 8 months ago (2010-04-28 16:57:15 UTC) #11
ericli
http://codereview.chromium.org/1794004/diff/12001/8002 File src/scripts/autotest (right): http://codereview.chromium.org/1794004/diff/12001/8002#newcode195 src/scripts/autotest:195: if '-a' in args: You should define args into ...
10 years, 8 months ago (2010-04-28 17:03:55 UTC) #12
whywhat
http://codereview.chromium.org/1794004/diff/12001/8003 File src/scripts/run_remote_tests.sh (right): http://codereview.chromium.org/1794004/diff/12001/8003#newcode17 src/scripts/run_remote_tests.sh:17: DEFINE_string args "" "Command line arguments for test, separated ...
10 years, 8 months ago (2010-04-28 17:05:31 UTC) #13
petkov
lgtm once ericli lgtm's On 2010/04/28 17:05:31, whywhat wrote: > http://codereview.chromium.org/1794004/diff/12001/8003 > File src/scripts/run_remote_tests.sh (right): ...
10 years, 8 months ago (2010-04-28 17:22:56 UTC) #14
whywhat
http://codereview.chromium.org/1794004/diff/12001/8002 File src/scripts/autotest (right): http://codereview.chromium.org/1794004/diff/12001/8002#newcode195 src/scripts/autotest:195: if '-a' in args: On 2010/04/28 17:03:55, ericli wrote: ...
10 years, 8 months ago (2010-04-28 17:45:09 UTC) #15
ericli
10 years, 8 months ago (2010-04-28 17:49:36 UTC) #16
LGTM.

On 2010/04/28 17:45:09, whywhat wrote:
> http://codereview.chromium.org/1794004/diff/12001/8002
> File src/scripts/autotest (right):
> 
> http://codereview.chromium.org/1794004/diff/12001/8002#newcode195
> src/scripts/autotest:195: if '-a' in args:
> On 2010/04/28 17:03:55, ericli wrote:
> > You should define args into parser.add_options so --args option (-a) could
be
> > accessible from options, and it will be removed from args list for free.
> 
> Done.
> 
> http://codereview.chromium.org/1794004/diff/12001/8003
> File src/scripts/run_remote_tests.sh (right):
> 
> http://codereview.chromium.org/1794004/diff/12001/8003#newcode264
> src/scripts/run_remote_tests.sh:264: "${args[@]}"
> On 2010/04/28 16:57:15, petkov wrote:
> > Same concern about passing an empty argument "" down...
> > 
> > 
> As I was explained by local shell scripting guru, this "" syntax is only a
> script syntax for not splitting its contents by spaces, "" doesn't get to
> command line of the command running.

Powered by Google App Engine
This is Rietveld 408576698