Descriptiontelemetry: handle tests that are not supported on a platform.
When a test or measurement was not supported on a platform, we used to print
a warning and call sys.exit(0). This caused problems with unittests, because
it was considered a failure (for page measurements it was not a failure).
This patch introduces the page_test.TestNotSupportedOnPlatformFailure
exception. Tests and measurements throw this exception if they can't run on
a platform. PageTestRunner and unit tests catch these exceptions and
print a warning, but they don't consider it an error.
R=tonyg@chromium.org, dtu@chromium.org, vmpstr@chromium.org
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260475
Patch Set 1 #
Total comments: 5
Patch Set 2 : Rebase and fixes for run_benchmark case. #
Total comments: 3
Patch Set 3 : Removed comments #
Total comments: 6
Patch Set 4 : Clean-ups #Patch Set 5 : Catch new exception in TestTracingCleanedUp. #Messages
Total messages: 34 (0 generated)
|