xbuddy: fix latest-dev keyword
crash flash was not able to install image using latest-dev keyword.
Listing directory in _LS was not working.
BUG=chromium:704174
TEST=Check 'cros flash <ip> xbuddy://remote/eve/latest-dev/test' works.
Change-Id: Ic8e9465836308d7897c67861a13527415cd0c2dc
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/465447
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
diff --git a/xbuddy.py b/xbuddy.py
index dbfcdd3..4fda995 100644
--- a/xbuddy.py
+++ b/xbuddy.py
@@ -371,7 +371,7 @@
"""
if list_subdirectory:
return self._ctx.DoCommand(
- ['ls', '-d', '--', path]).output.splitlines()
+ ['ls', '-d', '--', path], redirect_stdout=True).output.splitlines()
else:
return self._ctx.LS(path)