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

Unified Diff: client/deps/autox/autox.py

Issue 553128: Adds autox deps configuration and adds setup to AutoLogin (Closed)
Patch Set: Fixes to nits Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/deps/autox/README ('k') | client/deps/autox/common.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/autox/autox.py
diff --git a/client/deps/autox/autox.py b/client/deps/autox/autox.py
new file mode 100755
index 0000000000000000000000000000000000000000..152472a311274c59c10582c6fc1f2cfaf793b574
--- /dev/null
+++ b/client/deps/autox/autox.py
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import common, commands, os
+from autotest_lib.client.bin import utils
+
+version = 1
+
+def setup(top_dir):
+ root = commands.getoutput('echo $GCLIENT_ROOT')
+
+ # Make the debian package first
+ autox_dir = '%s/src/platform/autox' % root
+ os.chdir(autox_dir)
+ utils.system('./make_pkg.sh')
+ os.chdir(top_dir)
+
+ # TODO(sosa@chromium.org) - Find out a way to figure out whether to use
+ # arm vs. x86
+ deb_dir = '%s/%s' % (root, 'src/build/x86/local_packages')
+ package_regexp = 'chromeos-autox*'
+
+ # Get the latest chromeos-autox package
+ find_cmd = 'find %s -name %s | tail -n 1' % (deb_dir, package_regexp)
+ deb_pkg = commands.getoutput(find_cmd)
+
+ if deb_pkg == '':
+ raise error.TestError('ChromeOS autox package not found')
+
+ # The path of the dpkg script used to install debian packages
+ dpkg_script = '%s/src/scripts/dpkg_no_scripts.sh' % root
+
+ utils.system('%s --root %s --unpack %s' % (dpkg_script, top_dir, deb_pkg))
+
+pwd = os.getcwd()
+utils.update_version(pwd + '/src', False, version, setup, pwd)
« no previous file with comments | « client/deps/autox/README ('k') | client/deps/autox/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698