diff options
author | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 19:54:01 +0000 |
---|---|---|
committer | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 19:54:01 +0000 |
commit | 9c080d3bd5064251d29341fa114568d9a2cb1190 (patch) | |
tree | aa7a7ac5164f6c320a8e72892e71c8fd095ca5ae /chrome/test/pyautolib | |
parent | 7e83dcbae25d0cca030a6983fab7de1dcc4283cc (diff) | |
download | chromium_src-9c080d3bd5064251d29341fa114568d9a2cb1190.zip chromium_src-9c080d3bd5064251d29341fa114568d9a2cb1190.tar.gz chromium_src-9c080d3bd5064251d29341fa114568d9a2cb1190.tar.bz2 |
Fix the problem with PYAuto creating the metrics consent file root owned.
The file should be owned by chronos or else we fail the PlatformPermissions tests.
BUG=chromium-os:19942
TEST=security_ProfilePermissions
Review URL: http://codereview.chromium.org/7831038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib')
-rw-r--r-- | chrome/test/pyautolib/pyauto.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py index 4113b3a..895985a 100644 --- a/chrome/test/pyautolib/pyauto.py +++ b/chrome/test/pyautolib/pyauto.py @@ -317,6 +317,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): if not _HasValidConsentFile(): client_id = hashlib.md5('abcdefgh').hexdigest() open(consent_file, 'w').write(client_id) + # This file must be owned by cronos:cronos! + os.chown(consent_file, 1000, 1000); assert _HasValidConsentFile(), 'Could not create %s' % consent_file @staticmethod |