OLD | NEW |
| (Empty) |
1 import logging, re, utils, dbus | |
2 from autotest_lib.client.bin import test | |
3 from autotest_lib.client.common_lib import error | |
4 | |
5 class platform_DiskIterate(test.test): | |
6 version = 1 | |
7 | |
8 def run_once(self): | |
9 | |
10 bus = dbus.SystemBus() | |
11 | |
12 proxy = bus.get_object("org.freedesktop.DeviceKit.Disks", | |
13 "/org/freedesktop/DeviceKit/Disks") | |
14 | |
15 foo = dbus.Interface(proxy, "org.freedesktop.DeviceKit.Disks") | |
16 | |
17 arrayiter = foo.EnumerateDevices() | |
18 | |
19 if not len(arrayiter): | |
20 raise error.TestFail('Unable to find at least one disk') | |
OLD | NEW |