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

Issue 1595001: New autotest wrapper script and bash complete support. (Closed)

Created:
10 years, 8 months ago by ericli
Modified:
10 years, 8 months ago
Reviewers:
kmixter1, petkov, sosa
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

New autotest wrapper script and bash complete support. A new command line script was introduced in this CL named autotest, which is intend to replace both build_autotest.sh and run_remote_tests.sh in the future. This change list should be reviewed with http://codereview.chromium.org/1513006 http://codereview.chromium.org/1595001 all together. autotest --board x86-generic --build=all will build all client tests. autotest --board x86-generic --build=unioxbench,ltp will build enlisted client tests. autotest --board x86-generic -c client/tests/sleeptest/control -m 12.34.56.78 ... will invoke autoserv inside emerge-x86-generic cross-compiling env, and do a prebuild of the client test before it got pushed onto client host. you could also: 1. bash complete the directory/file name from autotest directory after -c or -s args. 2. supply any autoserv commandline args transparently. Note: replace build_autotest.sh/run_remotes_test.sh is only a future plan. When all the three CLs got pushed, no existing use cases should be broken. I need to change: 1. build_packages script from third_party/chromiumos-overlay/chromeos/scripts/build_packages. 2. add "enable_server_precompile: False " to third_party/autotest/files/global_config.ini to activate it.

Patch Set 1 #

Patch Set 2 : patch 1. #

Patch Set 3 : patch 3 #

Total comments: 20

Patch Set 4 : patch 4 #

Patch Set 5 : patch 5 #

Total comments: 6

Patch Set 6 : patch 6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -5 lines) Patch
A src/scripts/autotest View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A src/scripts/autotest.py View 1 2 3 1 chunk +183 lines, -0 lines 0 comments Download
M src/scripts/bash_completion View 1 2 3 4 5 2 chunks +38 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ericli
10 years, 8 months ago (2010-03-30 22:09:58 UTC) #1
petkov
Mostly nits. http://codereview.chromium.org/1595001/diff/4001/5001 File src/scripts/autotest (right): http://codereview.chromium.org/1595001/diff/4001/5001#newcode18 src/scripts/autotest:18: python $(dirname $0)/autotest.py $@ || die "autotest ...
10 years, 8 months ago (2010-03-31 16:56:34 UTC) #2
petkov
http://codereview.chromium.org/1595001/diff/4001/5003 File src/scripts/bash_completion (right): http://codereview.chromium.org/1595001/diff/4001/5003#newcode125 src/scripts/bash_completion:125: ls --color=never -dBFH ${autotest_dir}/$1* 2>/dev/null |\ On 2010/03/31 16:56:34, ...
10 years, 8 months ago (2010-03-31 17:07:45 UTC) #3
ericli
Thanks for your review, PTAL. http://codereview.chromium.org/1595001/diff/4001/5001 File src/scripts/autotest (right): http://codereview.chromium.org/1595001/diff/4001/5001#newcode18 src/scripts/autotest:18: python $(dirname $0)/autotest.py $@ ...
10 years, 8 months ago (2010-03-31 17:41:04 UTC) #4
petkov
A few nits on the bash_completion, LGTM otherwise. Thanks for updating the bash_completion script. http://codereview.chromium.org/1595001/diff/14001/15003 ...
10 years, 8 months ago (2010-03-31 18:11:34 UTC) #5
ericli
Thanks for your review. Please take a final check before I submit. This is my ...
10 years, 8 months ago (2010-03-31 18:20:21 UTC) #6
petkov
still lgtm. Btw, I assume you've considered the implications of naming the script the same ...
10 years, 8 months ago (2010-03-31 18:31:31 UTC) #7
ericli
10 years, 8 months ago (2010-03-31 18:40:34 UTC) #8
I am on the other side. I want to let people know this is the only script to
invoke autotest in the future. There are multiple executables under
autotest/files: client/bin/autotest, client/bin/autotest_client,
server/autoserv, like to hide that level of information.

That is why I tried to put the fancy optionparser there to pass autotest
args.


On Wed, Mar 31, 2010 at 11:31 AM, <petkov@chromium.org> wrote:

> still lgtm.
>
> Btw, I assume you've considered the implications of naming the script the
> same
> way as the client/bin/autotest binary? I can't think of anything major
> other
> than potential confusion. If it's not too much trouble, it might be worth
> picking a unique name.
>
>
>
>
> http://codereview.chromium.org/1595001
>



-- 
Eric Li
李咏竹
Google Kirkland

Powered by Google App Engine
This is Rietveld 408576698