Пример #1
0
 def setUp(self):
     self.host = MockHost()
     # Mock a virtual test suite at virtual/gpu/external/wpt/foo.
     self.host.filesystem = MockFileSystem({
         '/mock-checkout/third_party/WebKit/LayoutTests/VirtualTestSuites':
         '[{"prefix": "gpu", "base": "external/wpt/foo", "args": ["--foo"]}]'
     })
     self.git = self.host.git()
     self.local_wpt = MockLocalWPT()
     self.notifier = ImportNotifier(self.host, self.git, self.local_wpt)
 def setUp(self):
     self.host = MockHost()
     # Mock a virtual test suite at virtual/gpu/external/wpt/foo.
     self.host.filesystem = MockFileSystem({
         MOCK_WEB_TESTS + 'VirtualTestSuites':
         '[{"prefix": "gpu", "bases": ["external/wpt/foo"], "args": ["--foo"]}]'
     })
     self.git = self.host.git()
     self.local_wpt = MockLocalWPT()
     self.notifier = ImportNotifier(self.host, self.git, self.local_wpt)
Пример #3
0
 def send_notifications(self, local_wpt, auto_file_bugs, monorail_auth_json):
     issue = self.git_cl.run(['status', '--field=id']).strip()
     patchset = self.git_cl.run(['status', '--field=patch']).strip()
     # Construct the notifier here so that any errors won't affect the import.
     notifier = ImportNotifier(self.host, self.chromium_git, local_wpt)
     notifier.main(self.last_wpt_revision, self.wpt_revision,
                   self.rebaselined_tests, self.new_test_expectations,
                   issue, patchset,
                   dry_run=not auto_file_bugs, service_account_key_json=monorail_auth_json)
     return True