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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « client/site_tests/platform_DiskIterate/control ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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')
OLDNEW
« 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