summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-01-22 14:50:29 +0000
committerPavel Labath <labath@google.com>2016-01-22 14:50:29 +0000
commit4b70eb7b2bda53e3ef04b72921ee8aca97b800b9 (patch)
treec59fbd0b7701f92b31054f613c8721f95a16800a /lldb/packages/Python/lldbsuite/test/lldbtest.py
parent5fe4122348551cc7e4969e4afe51fb415daa0ed9 (diff)
downloadbcm5719-llvm-4b70eb7b2bda53e3ef04b72921ee8aca97b800b9.tar.gz
bcm5719-llvm-4b70eb7b2bda53e3ef04b72921ee8aca97b800b9.zip
Revert "Enable test log collection from remote debug servers"
Unfortunately, this turns out not to be working on the lldb-server tests, as there the server is started in a different way. Since this was a bit of a hack to start with, I am removing it until I can solve the problem more holistically. llvm-svn: 258501
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py24
1 files changed, 6 insertions, 18 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 50b763d5c06..63be1809c14 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1345,7 +1345,7 @@ class Base(unittest2.TestCase):
else:
categories = "default"
- if channel == "gdb-remote" and lldb.remote_platform is None:
+ if channel == "gdb-remote":
# communicate gdb-remote categories to debugserver
os.environ["LLDB_DEBUGSERVER_LOG_FLAGS"] = categories
@@ -1354,15 +1354,12 @@ class Base(unittest2.TestCase):
raise Exception('log enable failed (check LLDB_LOG_OPTION env variable)')
# Communicate log path name to debugserver & lldb-server
- # For remote debugging, these variables need to be set when starting the platform
- # instance.
- if lldb.remote_platform is None:
- server_log_path = "{}-server.log".format(log_basename)
- open(server_log_path, 'w').close()
- os.environ["LLDB_DEBUGSERVER_LOG_FILE"] = server_log_path
+ server_log_path = "{}-server.log".format(log_basename)
+ open(server_log_path, 'w').close()
+ os.environ["LLDB_DEBUGSERVER_LOG_FILE"] = server_log_path
- # Communicate channels to lldb-server
- os.environ["LLDB_SERVER_LOG_CHANNELS"] = ":".join(lldbtest_config.channels)
+ # Communicate channels to lldb-server
+ os.environ["LLDB_SERVER_LOG_CHANNELS"] = ":".join(lldbtest_config.channels)
if len(lldbtest_config.channels) == 0:
return
@@ -1376,15 +1373,6 @@ class Base(unittest2.TestCase):
if not self.res.Succeeded():
raise Exception('log disable failed (check LLDB_LOG_OPTION env variable)')
- # Retrieve the server log (if any) from the remote system. It is assumed the server log
- # is writing to the "server.log" file in the current test directory. This can be
- # achieved by setting LLDB_DEBUGSERVER_LOG_FILE="server.log" when starting remote
- # platform. If the remote logging is not enabled, then just let the Get() command silently
- # fail.
- if lldb.remote_platform:
- lldb.remote_platform.Get(lldb.SBFileSpec("server.log"),
- lldb.SBFileSpec(self.getLogBasenameForCurrentTest()+"-server.log"))
-
def setUp(self):
"""Fixture for unittest test case setup.
OpenPOWER on IntegriCloud