summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/support
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-01-28 18:07:28 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-01-28 18:07:28 +0000
commit8193236b082e78292c3919cd0c1ce64d30a75172 (patch)
treec3d47a0bf566ddefdf2c41963444f4b2f8cc4d83 /lldb/packages/Python/lldbsuite/support
parent685d5f675e23bc991ad8a96739ff0833bdd23c15 (diff)
downloadbcm5719-llvm-8193236b082e78292c3919cd0c1ce64d30a75172.tar.gz
bcm5719-llvm-8193236b082e78292c3919cd0c1ce64d30a75172.zip
[testsuite] Remove trailing characters from command output.
When running the test suite on macOS with Python 3 we noticed a difference in behavior between Python 2 and Python 3 for seven.get_command_output. The output contained a newline with Python 3, but not for Python 2. This resulted in an invalid SDK path passed to the compiler. Differential revision: https://reviews.llvm.org/D57275 llvm-svn: 352397
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support')
-rw-r--r--lldb/packages/Python/lldbsuite/support/seven.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/support/seven.py b/lldb/packages/Python/lldbsuite/support/seven.py
index e04f48308b7..c83047896fb 100644
--- a/lldb/packages/Python/lldbsuite/support/seven.py
+++ b/lldb/packages/Python/lldbsuite/support/seven.py
@@ -15,7 +15,7 @@ else:
subprocess.check_output(
command,
shell=True,
- universal_newlines=True))
+ universal_newlines=True).rstrip())
except subprocess.CalledProcessError as e:
return (e.returncode, e.output)
OpenPOWER on IntegriCloud