[Lldb-commits] [lldb] r249541 - Remove working directory from remote platform in the test suite
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 7 05:38:29 PDT 2015
Author: tberghammer
Date: Wed Oct 7 07:38:29 2015
New Revision: 249541
URL: http://llvm.org/viewvc/llvm-project?rev=249541&view=rev
Log:
Remove working directory from remote platform in the test suite
Previously we haven't cleaned up the working directory we created on
the remote platform and because of it we run out of storage on some
android device/emulator (caused by the 2x increase of the number of
test cases because of dwo).
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=249541&r1=249540&r2=249541&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Oct 7 07:38:29 2015
@@ -2472,6 +2472,13 @@ class TestBase(Base):
error = lldb.remote_platform.MakeDirectory(remote_test_dir, 0700)
if error.Success():
lldb.remote_platform.SetWorkingDirectory(remote_test_dir)
+
+ def remove_working_dir():
+ # TODO: Make it working on Windows when we need it for remote debugging support
+ # TODO: Add a command to SBPlatform/Platform to remove a (non empty) directory
+ shell_cmd = lldb.SBPlatformShellCommand("rm -rf %s" % remote_test_dir)
+ lldb.remote_platform.Run(shell_cmd)
+ self.addTearDownHook(remove_working_dir)
else:
print "error: making remote directory '%s': %s" % (remote_test_dir, error)
More information about the lldb-commits
mailing list