diff options
| author | Fangrui Song <maskray@google.com> | 2018-11-03 04:52:32 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-11-03 04:52:32 +0000 |
| commit | 93deae23d1d9202168444f90756daf801feb1537 (patch) | |
| tree | e7d2d6dbd27aeaba6f7c8a20f4593c2b66ef2c7f /debuginfo-tests | |
| parent | 35018958637384423c1f8a48628c8f3f8dea23c5 (diff) | |
| download | bcm5719-llvm-93deae23d1d9202168444f90756daf801feb1537.tar.gz bcm5719-llvm-93deae23d1d9202168444f90756daf801feb1537.zip | |
[debuginfo-tests] commands.getoutput -> subprocess.check_output
We should also make Darwin Python3 happy after r346059
The output has an extra newline but it is fine in this particular case.
llvm-svn: 346066
Diffstat (limited to 'debuginfo-tests')
| -rw-r--r-- | debuginfo-tests/lit.cfg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debuginfo-tests/lit.cfg.py b/debuginfo-tests/lit.cfg.py index ac922c40d9c..a806c125555 100644 --- a/debuginfo-tests/lit.cfg.py +++ b/debuginfo-tests/lit.cfg.py @@ -63,8 +63,8 @@ llvm_config.add_tool_substitutions(tools, tool_dirs) lit.util.usePlatformSdkOnDarwin(config, lit_config) if platform.system() == 'Darwin': - import commands - xcode_lldb_vers = commands.getoutput("xcrun lldb --version") + import subprocess + xcode_lldb_vers = subprocess.check_output(['xcrun', 'lldb', '--version']) match = re.search('lldb-(\d+)', xcode_lldb_vers) if match: apple_lldb_vers = int(match.group(1)) |

