[Lldb-commits] [lldb] r137285 - /lldb/trunk/test/lldbtest.py
Johnny Chen
johnny.chen at apple.com
Wed Aug 10 17:16:28 PDT 2011
Author: johnny
Date: Wed Aug 10 19:16:28 2011
New Revision: 137285
URL: http://llvm.org/viewvc/llvm-project?rev=137285&view=rev
Log:
When a benchmarks test fails, the re-run command should include the '+b' option instead of the '-t' option.
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=137285&r1=137284&r2=137285&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Aug 10 19:16:28 2011
@@ -701,6 +701,12 @@
if test is self:
print >> self.session, traceback
+ testMethod = getattr(self, self._testMethodName)
+ if getattr(testMethod, "__benchmarks_test__", False):
+ benchmarks = True
+ else:
+ benchmarks = False
+
dname = os.path.join(os.environ["LLDB_TEST"],
os.environ["LLDB_SESSION_DIRNAME"])
if not os.path.isdir(dname):
@@ -711,7 +717,8 @@
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 %s -v -t -f %s.%s" % (self.getRunOptions(),
+ print >> f, "./dotest.py %s -v %s -f %s.%s" % (self.getRunOptions(),
+ ('+b' if benchmarks else '-t'),
self.__class__.__name__,
self._testMethodName)
More information about the lldb-commits
mailing list