platform_BootPerf update for ARM

(Patch 2: Catch all exceptions, not just error.TestFail)

Work around for issue:
http://code.google.com/p/chromium-os/issues/detail?id=7368

Adding a try/except block around code reading files that may not
exist on the device.

Results from running on Seaboard:

INFO    : Test results:
-----------------------------------------
platform_BootPerf                   PASS
platform_BootPerf/platform_BootPerf PASS
  mhz_primary_cpu                   0
  rdbytes_kernel_to_chrome_exec     29447168.0
  rdbytes_kernel_to_login           80446464.0
  rdbytes_kernel_to_startup         3067904.0
  rdbytes_kernel_to_startup_done    6194176.0
  rdbytes_kernel_to_x_started       28091392.0
  reboots_in_syslog                 0
  seconds_firmware_boot             0.0
  seconds_kernel_to_chrome_exec     17.28
  seconds_kernel_to_chrome_main     19.66
  seconds_kernel_to_login           23.14
  seconds_kernel_to_network         71.61
  seconds_kernel_to_startup         9.13
  seconds_kernel_to_startup_done    13.4
  seconds_kernel_to_x_started       17.15
  seconds_power_on_to_login         23.14
-----------------------------------------
Total PASS: 2/2 (100%)

BUG=None.
TEST=Run on Seaboard.

Change-Id: I5d4c88b368397c70e22274233d8a846bd8473e99
Reviewed-on: http://gerrit.chromium.org/gerrit/1977
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Paul Pendlebury <pauldean@chromium.org>
1 file changed