Chromium Code Reviews| Index: client/cros/chrome_test.py |
| diff --git a/client/bin/site_chrome_test.py b/client/cros/chrome_test.py |
| similarity index 93% |
| rename from client/bin/site_chrome_test.py |
| rename to client/cros/chrome_test.py |
| index 8969a8bde5ee69ed905d3f7c87adefaf825ef9ae..f8cc809012122ef76b9d583f5555e2f38f5c20a5 100644 |
| --- a/client/bin/site_chrome_test.py |
| +++ b/client/cros/chrome_test.py |
| @@ -3,8 +3,10 @@ |
| # found in the LICENSE file. |
| import logging, os, re, shutil, subprocess, tempfile, utils |
| +import common |
|
kmixter1
2010/12/16 03:12:57
style is to put these all on one line. Should you
ericli
2010/12/17 21:48:39
common is a very special hack by autotest design,
|
| +import ui |
| from autotest_lib.client.bin import test |
| -from autotest_lib.client.common_lib import error, global_config, site_ui |
| +from autotest_lib.client.common_lib import error, global_config |
| class ChromeTestBase(test.test): |
| home_dir = None |
| @@ -48,7 +50,7 @@ class ChromeTestBase(test.test): |
| test_binary) |
| cmd = 'HOME=%s CR_SOURCE_ROOT=%s %s' % (self.home_dir, |
| self.cr_source_dir, |
| - site_ui.xcommand(cmd)) |
| + ui.xcommand(cmd)) |
| logging.debug("Running %s" % cmd) |
| test_proc = subprocess.Popen(cmd, |
| shell=True, |
| @@ -74,7 +76,7 @@ class ChromeTestBase(test.test): |
| cmd = '%s/%s %s' % (self.test_binary_dir, test_to_run, extra_params) |
| cmd = 'HOME=%s CR_SOURCE_ROOT=%s %s' % (self.home_dir, |
| self.cr_source_dir, |
| - site_ui.xcommand(cmd)) |
| + ui.xcommand(cmd)) |
| utils.system(cmd) |
| except error.CmdError, e: |
| logging.debug(e) |