示例#1
0
 def CreateStorySet(self, options):
     if not options.cros_remote:
         # Raise exception here would fail the presubmit check.
         logging.error('Must specify --remote=DUT_IP to run this test.')
     story_set = story.StorySet(archive_data_file='data/tab_switching.json',
                                base_dir=os.path.dirname(
                                    os.path.abspath(__file__)),
                                cloud_storage_bucket=story.PARTNER_BUCKET)
     story_set.AddStory(
         tab_switching_stories.CrosMultiTabTypical24Story(
             story_set, options.cros_remote, options.tabset_repeat))
     return story_set
示例#2
0
 def CreateStorySet(self, options):
   # When running this test with test_that, fetch_benchmark_deps.py would
   # invoke this method. Options doesn't have attribute cros_remote in this
   # case.
   cros_remote = getattr(options, 'cros_remote', None)
   story_set = story.StorySet(
       archive_data_file='data/tab_switching.json',
       base_dir=os.path.dirname(os.path.abspath(__file__)),
       cloud_storage_bucket=story.PARTNER_BUCKET)
   story_set.AddStory(tab_switching_stories.CrosMultiTabTypical24Story(
       story_set, cros_remote, options.tabset_repeat,
       options.pause_after_creation, options.pause_after_switch))
   return story_set