[Lldb-commits] [lldb] r118646 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Tue Nov 9 14:56:12 PST 2010


Author: johnny
Date: Tue Nov  9 16:56:12 2010
New Revision: 118646

URL: http://llvm.org/viewvc/llvm-project?rev=118646&view=rev
Log:
When dumping the session log for a failed/errored test, also emit the command to
invoke the test driver to rerun the very same test.  Example output:

/Volumes/data/lldb/svn/trunk/test $ tail 2010-11-09-14_51_34/ExpectedFailure-TestSettings.SettingsCommandTestCase.test_set_output_path.log 

Traceback (most recent call last):
  File "/Volumes/data/lldb/svn/trunk/test/settings/TestSettings.py", line 136, in test_set_output_path
    "'stdout.txt' exists due to target.process.output-path.")
AssertionError: False is not True : 'stdout.txt' exists due to target.process.output-path.


To rerun this test, issue the following command from the 'test' directory:

./dotest.py -v -t -f SettingsCommandTestCase.test_set_output_path

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=118646&r1=118645&r2=118646&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Nov  9 16:56:12 2010
@@ -572,6 +572,9 @@
             import datetime
             print >> f, "Session info generated @", datetime.datetime.now().ctime()
             print >> f, self.session.getvalue()
+            print >> f, "To rerun this test, issue the following command from the 'test' directory:\n"
+            print >> f, "./dotest.py -v -t -f %s.%s" % (self.__class__.__name__,
+                                                        self._testMethodName)
 
     def setTearDownCleanup(self, dictionary=None):
         """Register a cleanup action at tearDown() time with a dictinary"""





More information about the lldb-commits mailing list