Commit 16e50eb0 authored by Chong Gu's avatar Chong Gu Committed by Commit Bot

[Fuchsia] Fix testing flow on already running devices.

Bug: 1131989
Change-Id: I9b84112d9d3552a744010f4008a3d9b7d21b4fa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429446Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Commit-Queue: Chong Gu <chonggu@google.com>
Cr-Commit-Position: refs/heads/master@{#811391}
parent 5e241a91
...@@ -164,7 +164,12 @@ class DeviceTarget(target.Target): ...@@ -164,7 +164,12 @@ class DeviceTarget(target.Target):
return filecmp.cmp(tmp.name, os.path.join(SDK_ROOT, '.hash'), False) return filecmp.cmp(tmp.name, os.path.join(SDK_ROOT, '.hash'), False)
def _ProvisionDeviceIfNecessary(self): def _ProvisionDeviceIfNecessary(self):
pass if self._Discover():
self._WaitUntilReady()
else:
raise Exception('Could not find device. If the device is connected '
'to the host remotely, make sure that --host flag is '
'set and that remote serving is set up.')
def _Discover(self): def _Discover(self):
"""Queries mDNS for the IP address of a booted Fuchsia instance whose name """Queries mDNS for the IP address of a booted Fuchsia instance whose name
...@@ -227,8 +232,6 @@ class DeviceTarget(target.Target): ...@@ -227,8 +232,6 @@ class DeviceTarget(target.Target):
self._WaitUntilReady() self._WaitUntilReady()
else: else:
self._ProvisionDeviceIfNecessary() self._ProvisionDeviceIfNecessary()
assert self._node_name
assert self._host
def GetAmberRepo(self): def GetAmberRepo(self):
if not self._amber_repo: if not self._amber_repo:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment