Skip to content

Commit 4437c89

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "gdbrunner: strip the newline off the result of "which executable""
2 parents c08a8fd + 01fa9e4 commit 4437c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-packages/gdbrunner/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def find_executable_path(device, executable_name, run_as_cmd=None):
267267

268268
try:
269269
output, _ = device.shell(cmd)
270-
return output
270+
return adb.split_lines(output)[0]
271271
except adb.ShellError:
272272
raise RuntimeError("Could not find executable '{}' on "
273273
"device".format(executable_name))

0 commit comments

Comments
 (0)