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

Side by Side Diff: client/cros/backchannel.py

Issue 6479003: Move site_backchannel and site_tpm module into client/cros dir. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | client/cros/tpm.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import logging, os, subprocess 4 import logging, os, subprocess
5 from autotest_lib.client.common_lib import error, utils 5 from autotest_lib.client.common_lib import error, utils
6 6
7 7
8 # Flag file used to tell backchannel script it's okay to run. 8 # Flag file used to tell backchannel script it's okay to run.
9 BACKCHANNEL_FILE = '/mnt/stateful_partition/etc/enable_backchannel_network' 9 BACKCHANNEL_FILE = '/mnt/stateful_partition/etc/enable_backchannel_network'
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 backchannel('teardown %s' % interface) 54 backchannel('teardown %s' % interface)
55 55
56 def is_network_iface_running(name): 56 def is_network_iface_running(name):
57 try: 57 try:
58 out = utils.system_output('ifconfig %s' % name) 58 out = utils.system_output('ifconfig %s' % name)
59 except error.CmdError, e: 59 except error.CmdError, e:
60 logging.info(e) 60 logging.info(e)
61 return False 61 return False
62 62
63 return out.find('RUNNING') >= 0 63 return out.find('RUNNING') >= 0
OLDNEW
« no previous file with comments | « no previous file | client/cros/tpm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698