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

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

Issue 1147007: Adding test for checking to see if the devicekit-disks daemon is running (Closed)
Patch Set: 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/platform_DiskIterate/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/platform_DiskIterate/platform_DiskIterate.py
diff --git a/client/site_tests/platform_DiskIterate/platform_DiskIterate.py b/client/site_tests/platform_DiskIterate/platform_DiskIterate.py
new file mode 100644
index 0000000000000000000000000000000000000000..2e6c9464bc25db083b5a1afe27a90b28255d74bd
--- /dev/null
+++ b/client/site_tests/platform_DiskIterate/platform_DiskIterate.py
@@ -0,0 +1,20 @@
+import logging, re, utils, dbus
+from autotest_lib.client.bin import test
+from autotest_lib.client.common_lib import error
+
+class platform_DiskIterate(test.test):
+ version = 1
+
+ def run_once(self):
+
+ bus = dbus.SystemBus()
+
+ proxy = bus.get_object("org.freedesktop.DeviceKit.Disks",
+ "/org/freedesktop/DeviceKit/Disks")
+
+ foo = dbus.Interface(proxy, "org.freedesktop.DeviceKit.Disks")
+
+ arrayiter = foo.EnumerateDevices()
+
+ if not len(arrayiter):
+ raise error.TestFail('Unable to find at least one disk')
« no previous file with comments | « client/site_tests/platform_DiskIterate/control ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698