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

Issue 6090004: Move Autotest to /usr/local/autotest and fix hard-coded autodir paths in client tests. (Closed)

Created:
9 years, 11 months ago by DaleCurtis
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, truty+cc_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, petkov+cc_chromium.org, zhurunz1, jrbarnette, fes, ericli
Visibility:
Public.

Description

Move Autotest to /usr/local/autotest and fix hard-coded autodir paths in client tests. Apologies for the wide distribution, but I wanted to make sure anyone whose test will be changing is notified. At the very least so everyone knows about self.autodir in the future :) Please look at your test and comment if you see something wrong. It's possible some of these tests are deprecated, but I've changed them all just in case. Owners (from git blame): - tbroch: hardware_DeveloperRecovery - kmixter: logging_LogVolume, logging_UserCrash - jimhebert: platform_StackProtector, security_SuidBinaries - bleung: power_LoadTest/external_extensions.json - zhurunz: realtimecomm_GTalk* Due to /home going no-exec plus mount, boot, and shell issues when using /mnt/stateful_partition/autotest pointing to /home/autotest... Autotest needs a new home. Since our test images already mount and unmount /usr/local properly, we've decided to settle there. With our relocation, several tests were discovered to have hard-coded the autodir path. Where possible, I've changed the hard-coded paths to use self.autodir. For others, I've merely updated the hard-coded value. Notes: - hardware_DeveloperRecovery/src/DevRecTest.py is not an Autotest test case, so it can't use self.autodir without a larger refactoring. - logging_LogVolume/stateful_whitelist.txt already includes /usr/local as an ignored path. Only change was to remove stale paths. - power_LoadTest/external_extensions.json is not a python class, so it can't use self.autodir without a larger refactoring. - security_SuidBinaries already ignores /usr/local. So I just removed the stale path. Change-Id: Ia0fee59b82fa9a9b1cf4e237d38007281aa5992e BUG=chromium-os:10799 TEST=Will test in production. Will also run each test individually to make sure it passes (or at the least fails like it used to). Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=c1c1539

Patch Set 1 #

Patch Set 2 : Fix self reference. #

Patch Set 3 : security_SuidBinaries already ignores /usr/local #

Patch Set 4 : Merge with HEAD. #

Total comments: 4

Patch Set 5 : Revert to hard-coded path for logging_UserCrash #

Messages

Total messages: 11 (0 generated)
DaleCurtis
9 years, 11 months ago (2011-01-05 01:46:54 UTC) #1
jimhebert
The platform_StackProtector and security_SuidBinaries changes LGTM, thanks for handling this.
9 years, 11 months ago (2011-01-05 01:54:07 UTC) #2
tbroch1
DevRecTest.py, LGTM thanks Dale. On 2011/01/05 01:54:07, jimhebert wrote: > The platform_StackProtector and security_SuidBinaries changes ...
9 years, 11 months ago (2011-01-05 19:42:56 UTC) #3
zhurunz
LGTM with realtimecomm Thanks for clean up. -- Zhurun On Wed, Jan 5, 2011 at ...
9 years, 11 months ago (2011-01-05 20:10:01 UTC) #4
ericli
LGTM. On 2011/01/05 20:10:01, zhurunz wrote: > LGTM with realtimecomm > Thanks for clean up. ...
9 years, 11 months ago (2011-01-05 22:12:01 UTC) #5
Benson Leung
http://codereview.chromium.org/6090004/diff/7001/client/site_tests/power_LoadTest/external_extensions.json File client/site_tests/power_LoadTest/external_extensions.json (right): http://codereview.chromium.org/6090004/diff/7001/client/site_tests/power_LoadTest/external_extensions.json#newcode3 client/site_tests/power_LoadTest/external_extensions.json:3: "external_crx": "/usr/local/autotest/tests/power_LoadTest/extension.crx", Make sure to change 750enableExternalExtensions modfortest script. ...
9 years, 11 months ago (2011-01-05 23:13:13 UTC) #6
DaleCurtis
http://codereview.chromium.org/6090004/diff/7001/client/site_tests/power_LoadTest/external_extensions.json File client/site_tests/power_LoadTest/external_extensions.json (right): http://codereview.chromium.org/6090004/diff/7001/client/site_tests/power_LoadTest/external_extensions.json#newcode3 client/site_tests/power_LoadTest/external_extensions.json:3: "external_crx": "/usr/local/autotest/tests/power_LoadTest/extension.crx", Done. http://codereview.chromium.org/5972012/ On 2011/01/05 23:13:13, Benson Leung ...
9 years, 11 months ago (2011-01-05 23:22:43 UTC) #7
Benson Leung
On 2011/01/05 23:22:43, dalec wrote: > http://codereview.chromium.org/6090004/diff/7001/client/site_tests/power_LoadTest/external_extensions.json > File client/site_tests/power_LoadTest/external_extensions.json (right): > > http://codereview.chromium.org/6090004/diff/7001/client/site_tests/power_LoadTest/external_extensions.json#newcode3 > ...
9 years, 11 months ago (2011-01-07 01:13:07 UTC) #8
kmixter1
http://codereview.chromium.org/6090004/diff/7001/client/site_tests/logging_UserCrash/logging_UserCrash.py File client/site_tests/logging_UserCrash/logging_UserCrash.py (right): http://codereview.chromium.org/6090004/diff/7001/client/site_tests/logging_UserCrash/logging_UserCrash.py#newcode587 client/site_tests/logging_UserCrash/logging_UserCrash.py:587: os.path.join(self.autodir, 'tests/crash_log_recursion_test')): This isn't the right change. There is ...
9 years, 11 months ago (2011-01-07 01:30:04 UTC) #9
DaleCurtis
http://codereview.chromium.org/6090004/diff/7001/client/site_tests/logging_UserCrash/logging_UserCrash.py File client/site_tests/logging_UserCrash/logging_UserCrash.py (right): http://codereview.chromium.org/6090004/diff/7001/client/site_tests/logging_UserCrash/logging_UserCrash.py#newcode587 client/site_tests/logging_UserCrash/logging_UserCrash.py:587: os.path.join(self.autodir, 'tests/crash_log_recursion_test')): Symlink seems dirty. I fixed path in ...
9 years, 11 months ago (2011-01-07 01:48:57 UTC) #10
kmixter1
9 years, 11 months ago (2011-01-07 03:14:23 UTC) #11
LGTM on the LogVolume and UserCrash test changes

Powered by Google App Engine
This is Rietveld 408576698