src/build/lacros/test_runner.py
def _GetLatestVersionOfAshChrome():
  """Returns the latest version of uploaded ash-chrome."""
  import download_from_google_storage
  gsutil = download_from_google_storage.Gsutil(
      download_from_google_storage.GSUTIL_DEFAULT_PATH)

  with tempfile.NamedTemporaryFile() as tmp:
    gsutil.check_call('cp', _GS_URL_LATEST_FILE, tmp.name)
    with open(tmp.name, 'r') as f:
      return f.read().strip()
Returns the latest version of uploaded ash-chrome.
Returns the latest version of uploaded ash-chrome.
Returns the latest version of uploaded ash - chrome .
def _GetLatestVersionOfAshChrome():
  import download_from_google_storage
  gsutil = download_from_google_storage.Gsutil(
      download_from_google_storage.GSUTIL_DEFAULT_PATH)
  with tempfile.NamedTemporaryFile() as tmp:
    gsutil.check_call('cp', _GS_URL_LATEST_FILE, tmp.name)
    with open(tmp.name, 'r') as f:
      return f.read().strip()
def _GetLatestVersionOfAshChrome ( ) : import download_from_google_storage gsutil = download_from_google_storage . Gsutil ( download_from_google_storage . GSUTIL_DEFAULT_PATH ) with tempfile . NamedTemporaryFile ( ) as tmp : gsutil . check_call ( 'cp' , _GS_URL_LATEST_FILE , tmp . name ) with open ( tmp . name , 'r' ) as f : return f . read ( ) . strip ( )
Returns the latest version of uploaded ash-chrome.
Returns the latest version of uploaded ash - chrome .
"""Returns the latest version of uploaded ash-chrome."""