[Lldb-commits] [lldb] r116982 - /lldb/trunk/test/dotest.py

Johnny Chen johnny.chen at apple.com
Wed Oct 20 18:03:38 PDT 2010


Author: johnny
Date: Wed Oct 20 20:03:38 2010
New Revision: 116982

URL: http://llvm.org/viewvc/llvm-project?rev=116982&view=rev
Log:
Get rid of the microsecond field in the timestamp directory name used to dump the
session information files to.  This makes the directory name less intimidating.
Currently, the directory only gets created if there are failures/errors while
running the test suite.

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=116982&r1=116981&r2=116982&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Wed Oct 20 20:03:38 2010
@@ -525,6 +525,9 @@
 # See also TestBase.dumpSessionInfo() in lldbtest.py.
 import datetime
 raw_timestamp = str(datetime.datetime.today())
+usec_position = raw_timestamp.rfind('.')
+if usec_position != -1:
+    raw_timestamp = raw_timestamp[:usec_position]
 os.environ["LLDB_TIMESTAMP"] = raw_timestamp.replace(' ', '-')
 
 #





More information about the lldb-commits mailing list