diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-11-09 22:56:12 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-11-09 22:56:12 +0000 |
commit | 07569be70ccda18d0c35b67b0f0432894b82b17a (patch) | |
tree | df08fc27559ee74455a9495826c4e95c957229e8 | |
parent | 33048f069fe70f0b7ae4ddc74ce39304f5a8a7f7 (diff) | |
download | bcm5719-llvm-07569be70ccda18d0c35b67b0f0432894b82b17a.tar.gz bcm5719-llvm-07569be70ccda18d0c35b67b0f0432894b82b17a.zip |
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
llvm-svn: 118646
-rw-r--r-- | lldb/test/lldbtest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 9b5979aa70c..a730e6b0790 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -572,6 +572,9 @@ class TestBase(unittest2.TestCase): 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""" |