[Lldb-commits] [lldb] r123843 - /lldb/trunk/test/dotest.py
Johnny Chen
johnny.chen at apple.com
Wed Jan 19 11:31:46 PST 2011
Author: johnny
Date: Wed Jan 19 13:31:46 2011
New Revision: 123843
URL: http://llvm.org/viewvc/llvm-project?rev=123843&view=rev
Log:
Print out the command line used to invoke the test suite so I don't get confused
since different options can affect the run time.
Modified:
lldb/trunk/test/dotest.py
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=123843&r1=123842&r2=123843&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Wed Jan 19 13:31:46 2011
@@ -607,6 +607,12 @@
if not res.Succeeded():
raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.')
+def getMyCommandLine():
+ import subprocess
+ ps = subprocess.Popen(['ps', '-o', "command=CMD", str(os.getpid())], stdout=subprocess.PIPE).communicate()[0]
+ lines = ps.split('\n')
+ cmd_line = lines[1]
+ return cmd_line
# ======================================== #
# #
@@ -679,7 +685,9 @@
timestamp = datetime.datetime.now().strftime("%Y-%m-%d-%H_%M_%S")
sdir_name = timestamp
os.environ["LLDB_SESSION_DIRNAME"] = sdir_name
+
sys.stderr.write("\nSession logs for test failures/errors will go into directory '%s'\n" % sdir_name)
+sys.stderr.write("Command invoked: %s\n" % getMyCommandLine())
#
# Invoke the default TextTestRunner to run the test suite, possibly iterating
More information about the lldb-commits
mailing list