Set owner of consent file to match what the browser would do.
This is in order to account for session_manager_setup.sh now removing the
consent file if it's owned by root.
BUG=chrome-os-partner:3655
TEST=Ran remote tests.
Change-Id: Iee09651a4d1cd1491a06d8a39127a5308086c4e8
Reviewed-on: http://gerrit.chromium.org/gerrit/3276
Reviewed-by: Ken Mixter <kmixter@chromium.org>
Tested-by: Michael Krebs <mkrebs@chromium.org>
diff --git a/client/cros/crash_test.py b/client/cros/crash_test.py
index 8d46870..4c6cc35 100644
--- a/client/cros/crash_test.py
+++ b/client/cros/crash_test.py
@@ -178,6 +178,7 @@
"""
if has_consent:
utils.open_write_close(self._CONSENT_FILE, 'test-consent')
+ utils.system('chown chronos:chronos "%s"' % (self._CONSENT_FILE))
logging.info('Created ' + self._CONSENT_FILE)
else:
utils.system('rm -f "%s"' % (self._CONSENT_FILE))