debuginfo-test: Fix #45086.

LLDB's output may be None instead of '', and that will cause type
mismatch when normalize_whitespace() expects a string instead of
None. This commit simply ensures we do pass '' even if the output
is None.
This commit is contained in:
kennytm 2017-10-08 01:39:27 +08:00
parent bb4d149146
commit 07b189977d
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

@ -81,7 +81,7 @@ def execute_command(command_interpreter, command):
if res.Succeeded():
if res.HasResult():
print(normalize_whitespace(res.GetOutput()), end='\n')
print(normalize_whitespace(res.GetOutput() or ''), end='\n')
# If the command introduced any breakpoints, make sure to register
# them with the breakpoint