• petrcermak's avatar
    [system-health] Add support for disabling individual stories on individual platforms · 0d3d85c5
    petrcermak authored
    This patch adds support for enabling/disabling individual stories on individual
    platforms using the same approaches as for benchmarks:
    
      1. Disabled/Enabled decorator:
    
         @decorators.Disabled('win')
         class Story(system_health_story.SystemHealthStory):
            ...
    
      2. ShouldDisable method:
    
         class Story(system_health_story.SystemHealthStory):
            ...
    
            @classmethod
            def ShouldDisable(cls, possible_browser):
              return possible_browser.platform.GetOSName() == 'win'
    
    Note that this patch also enables search:portal:google on all desktop
    platforms except for Windows.
    
    BUG=634331
    CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.perf:android_s5_perf_cq;master.tryserver.chromium.perf:linux_perf_cq;master.tryserver.chromium.perf:mac_retina_perf_cq;master.tryserver.chromium.perf:winx64_10_perf_cq
    
    Review-Url: https://codereview.chromium.org/2228103002
    Cr-Commit-Position: refs/heads/master@{#417552}
    0d3d85c5
platforms.py 530 Bytes