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

Unified Diff: client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py

Issue 1297004: Add desktopui_IBusTest, that checks if IBus is working properly. (Closed)
Patch Set: be explicit about the user name Created 10 years, 9 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/site_tests/desktopui_IBusTest/control ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py
diff --git a/client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py b/client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py
new file mode 100644
index 0000000000000000000000000000000000000000..913b3c3de6973f00f6dd1f2ab67a35829571d8e1
--- /dev/null
+++ b/client/site_tests/desktopui_IBusTest/desktopui_IBusTest.py
@@ -0,0 +1,34 @@
+# 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 logging, os, utils
+from autotest_lib.client.bin import site_login, test
+from autotest_lib.client.common_lib import site_ui
+
+class desktopui_IBusTest(test.test):
+ version = 1
+ preserve_srcdir = True
+
+ def setup(self):
+ self.job.setup_dep(['autox'])
+ self.job.setup_dep(['ibusclient'])
+
+
+ def run_once(self):
+ logged_in = site_login.logged_in()
+ if not logged_in:
+ if not site_login.attempt_login(self, 'autox_script.json'):
+ raise error.TestFail('Could not login')
+ try:
+ dep = 'ibusclient'
+ dep_dir = os.path.join(self.autodir, 'deps', dep)
+ self.job.install_pkg(dep, 'dep', dep_dir)
+
+ exefile = os.path.join(self.autodir, 'deps/ibusclient/ibusclient')
+ cmd = site_ui.xcommand_as('DISPLAY=:0 %s' % exefile, 'chronos')
+ utils.system_output(cmd, retain_output=True)
+ finally:
+ # If we started logged out, log back out.
+ if not logged_in:
+ site_login.attempt_logout()
« no previous file with comments | « client/site_tests/desktopui_IBusTest/control ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698