Index: client/site_tests/platform_BootPerf/platform_BootPerf.py |
diff --git a/client/site_tests/platform_BootPerf/platform_BootPerf.py b/client/site_tests/platform_BootPerf/platform_BootPerf.py |
index a3b6724af3ce19a8fb8c8f3a82c75e63b7ef9ab3..3b723d149d5b903e9a5374a00610ef3a11b855b2 100644 |
--- a/client/site_tests/platform_BootPerf/platform_BootPerf.py |
+++ b/client/site_tests/platform_BootPerf/platform_BootPerf.py |
@@ -113,6 +113,23 @@ class platform_BootPerf(test.test): |
for resultname, filename in uptime_files: |
results[resultname] = self.__parse_uptime(filename) |
+ # Not all 'uptime-network-*-ready' files necessarily exist; |
+ # probably there's only one. We go through a list of |
+ # possibilities and pick the first one we find. We're not |
+ # looking for 3G here, so we're not guaranteed to find any |
+ # file. |
+ network_time_files = [ |
+ '/tmp/uptime-network-wifi-ready', |
+ '/tmp/uptime-network-ethernet-ready' ] |
+ |
+ for filename in network_time_files: |
+ try: |
+ network_time = self.__parse_uptime(filename) |
+ results['seconds_kernel_to_network'] = network_time |
+ break |
+ except error.TestFail: |
+ pass |
+ |
diskstat_files = [ |
('sectors_read_kernel_to_startup', '/tmp/disk-pre-startup'), |
('sectors_read_kernel_to_startup_done', '/tmp/disk-post-startup'), |