[Lldb-commits] [lldb] r182116 - Modifies the log directory to ensure that the log file will be found on tear-down (i.e. for CI agents that clean up artifacts aggressively).
Ashok Thirumurthi
ashok.thirumurthi at intel.com
Fri May 17 08:44:58 PDT 2013
Author: athirumu
Date: Fri May 17 10:44:58 2013
New Revision: 182116
URL: http://llvm.org/viewvc/llvm-project?rev=182116&view=rev
Log:
Modifies the log directory to ensure that the log file will be found on tear-down (i.e. for CI agents that clean up artifacts aggressively).
- Uses the cwd following the model of TestPublicAPIHeaders.py
Modified:
lldb/trunk/test/functionalities/register/TestRegisters.py
Modified: lldb/trunk/test/functionalities/register/TestRegisters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/register/TestRegisters.py?rev=182116&r1=182115&r2=182116&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/register/TestRegisters.py (original)
+++ lldb/trunk/test/functionalities/register/TestRegisters.py Fri May 17 10:44:58 2013
@@ -55,7 +55,6 @@ class RegisterCommandsTestCase(TestBase)
def common_setup(self):
exe = os.path.join(os.getcwd(), "a.out")
- self.log_file = exe + ".log"
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
@@ -77,10 +76,11 @@ class RegisterCommandsTestCase(TestBase)
self.platform = "linux"
if self.platform != "":
- self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + self.log_file, RUN_SUCCEEDED)
+ log_file = os.path.join(os.getcwd(), 'TestRegisters.log')
+ self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + log_file, RUN_SUCCEEDED)
if not self.has_teardown:
self.has_teardown = True
- self.addTearDownHook(lambda: os.remove(self.log_file))
+ self.addTearDownHook(lambda: os.remove(log_file))
def register_commands(self):
"""Test commands related to registers, in particular vector registers."""
More information about the lldb-commits
mailing list