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') |