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

Issue 4176007: Fix server side autotests installing to the wrong directory. (Closed)

Created:
10 years, 1 month ago by Dale Curtis
Modified:
9 years, 7 months ago
Reviewers:
ericli, truty
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli, petkov+cc_chromium.org, truty+cc_chromium.org
Visibility:
Public.

Description

Fix server side autotests installing to the wrong directory. I've added two new constants to global_config.ini: chromeos_client_autodir (default: /mnt/stateful_partition/autotest) and chromeos_client_mount (default: /home/autotest_mount). Autotest will now always create these directories and then mount chromeos_client_autodir at chromeos_client_mount as executable. A previous change did this for all client tests, but server side tests were over looked. Original CL is at http://codereview.chromium.org/3763007/show . I've merely relocated the code into autotest.py and updated unit tests and surrounding code. Since the original variable for client installation, client_autodir_paths, has no meaning for us in Chrome OS. I've removed it and ensured there are no dependencies. Some tests will need modification to work properly as they improperly hard coded the path to the autotest directory instead of querying the autodir variable. Change-Id: Ic8f9171d14a754d86f38ec882006a4217eab8ec3 BUG=8336 TEST=Ran unit tests. Tested in production; ran bvt, works fine. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=0b6843a

Patch Set 1 #

Patch Set 2 : Comment fixes. #

Total comments: 8

Patch Set 3 : Reworked to minimize churn. #

Patch Set 4 : Typos. #

Total comments: 8

Patch Set 5 : Comments! #

Patch Set 6 : mkdir -p #

Patch Set 7 : Change path back to default. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -30 lines) Patch
M global_config.ini View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M server/autotest.py View 1 2 3 4 5 2 chunks +24 lines, -1 line 0 comments Download
M server/autotest_unittest.py View 1 2 3 4 5 3 chunks +21 lines, -4 lines 0 comments Download
M server/test.py View 1 chunk +1 line, -25 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
DaleCurtis
PTAL Mike, since I've made changes to global_config.ini how do we merge these with what ...
10 years, 1 month ago (2010-10-28 21:52:14 UTC) #1
truty1
The contents of hbs are not regularly updated. They're simply enough to keep the cli ...
10 years, 1 month ago (2010-10-28 21:55:13 UTC) #2
DaleCurtis
You're correct, I did not realize we kept the global_config.ini file used on cautotest in ...
10 years, 1 month ago (2010-10-28 21:59:38 UTC) #3
ericli
http://codereview.chromium.org/4176007/diff/2001/3001 File global_config.ini (right): http://codereview.chromium.org/4176007/diff/2001/3001#newcode102 global_config.ini:102: chromeos_client_autodir: /mnt/stateful_partition/autotest I think we should reserve the entry ...
10 years, 1 month ago (2010-10-28 23:05:03 UTC) #4
DaleCurtis
PTAL. I reworked the CL to minimize changes to Autotest. On 2010/10/28 23:05:03, ericli wrote: ...
10 years, 1 month ago (2010-10-29 01:09:57 UTC) #5
DaleCurtis
http://codereview.chromium.org/4176007/diff/2001/3001 File global_config.ini (right): http://codereview.chromium.org/4176007/diff/2001/3001#newcode102 global_config.ini:102: chromeos_client_autodir: /mnt/stateful_partition/autotest On 2010/10/28 23:05:04, ericli wrote: > I ...
10 years, 1 month ago (2010-10-29 01:10:10 UTC) #6
ericli
http://codereview.chromium.org/4176007/diff/12001/13001 File global_config.ini (right): http://codereview.chromium.org/4176007/diff/12001/13001#newcode103 global_config.ini:103: client_autodir_real_path: /mnt/stateful_partition/autotest for even better upstream compatibility, you could ...
10 years, 1 month ago (2010-10-29 16:54:12 UTC) #7
truty
http://codereview.chromium.org/4176007/diff/12001/13002 File server/autotest.py (right): http://codereview.chromium.org/4176007/diff/12001/13002#newcode125 server/autotest.py:125: host.run('mkdir ' + client_autodir_real_path) Don't these mkdir commands need ...
10 years, 1 month ago (2010-10-29 17:40:19 UTC) #8
DaleCurtis
http://codereview.chromium.org/4176007/diff/12001/13001 File global_config.ini (right): http://codereview.chromium.org/4176007/diff/12001/13001#newcode103 global_config.ini:103: client_autodir_real_path: /mnt/stateful_partition/autotest On 2010/10/29 16:54:12, ericli wrote: > for ...
10 years, 1 month ago (2010-10-29 17:44:08 UTC) #9
DaleCurtis
http://codereview.chromium.org/4176007/diff/12001/13002 File server/autotest.py (right): http://codereview.chromium.org/4176007/diff/12001/13002#newcode125 server/autotest.py:125: host.run('mkdir ' + client_autodir_real_path) On 2010/10/29 17:40:20, truty wrote: ...
10 years, 1 month ago (2010-10-29 17:47:05 UTC) #10
ericli
LGTM.
10 years, 1 month ago (2010-10-29 17:50:27 UTC) #11
truty
10 years, 1 month ago (2010-10-29 17:59:41 UTC) #12
lgtm

Powered by Google App Engine
This is Rietveld 408576698