summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-11-03 00:16:23 +0000
committerReid Kleckner <rnk@google.com>2018-11-03 00:16:23 +0000
commit64189b8f577ef2681f2731259f00c002655ef02f (patch)
tree4ef9ba093ce141fbc9a7432f4366b0ae6af3b002 /debuginfo-tests
parent513472a7c549c43f9d265fa35cac04154faeb914 (diff)
downloadbcm5719-llvm-64189b8f577ef2681f2731259f00c002655ef02f.tar.gz
bcm5719-llvm-64189b8f577ef2681f2731259f00c002655ef02f.zip
[debuginfo-tests] Avoid "import commands" which was deprecated in Py3
llvm-svn: 346059
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/lit.cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debuginfo-tests/lit.cfg.py b/debuginfo-tests/lit.cfg.py
index 6b47dd50d1d..ac922c40d9c 100644
--- a/debuginfo-tests/lit.cfg.py
+++ b/debuginfo-tests/lit.cfg.py
@@ -5,7 +5,6 @@ import platform
import re
import subprocess
import tempfile
-import commands
import lit.formats
import lit.util
@@ -64,6 +63,7 @@ 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")
match = re.search('lldb-(\d+)', xcode_lldb_vers)
if match:
OpenPOWER on IntegriCloud