Esempio n. 1
0
 def test_depot_tools_base_not_found(self):
     filesystem = MockFileSystem()
     filesystem.path_to_module = lambda _: (
         '/mock-checkout/third_party/blink/tools/blinkpy/common/'
         'path_finder.py')
     finder = PathFinder(filesystem)
     self.assertIsNone(finder.depot_tools_base())
Esempio n. 2
0
 def __init__(self, host):
     self._host = host
     finder = PathFinder(host.filesystem)
     luci_auth_bin = 'luci-auth.bat' if host.platform.is_win(
     ) else 'luci-auth'
     self._luci_auth_path = host.filesystem.join(finder.depot_tools_base(),
                                                 luci_auth_bin)
Esempio n. 3
0
 def test_depot_tools_base_exists(self):
     filesystem = MockFileSystem()
     filesystem.path_to_module = lambda _: (
         '/checkout/third_party/blink/tools/blinkpy/common/'
         'path_finder.py')
     filesystem.maybe_make_directory('/checkout/third_party/depot_tools')
     finder = PathFinder(filesystem)
     self.assertEqual(finder.depot_tools_base(),
                      '/checkout/third_party/depot_tools')