forked from OSchip/llvm-project
[LLDB] Remove incorrect dotest.py invocation
The invocation shown by dotest.py to re-run a single test is misleading: it ranges from missing arguments (best case scenario) to being totally wrong (worst case scenario). In the past I've tried to get it right, but given the dotest architecture this is harder than it looks. Furthermore, we have pretty good documentation on the website [1] for most use cases. This patch removes the rerun invocation. [1] https://lldb.llvm.org/resources/test.html
This commit is contained in:
parent
f5094e1829
commit
f8a92af893
|
@ -1169,27 +1169,11 @@ class Base(unittest2.TestCase):
|
|||
if test is self:
|
||||
print(traceback, file=self.session)
|
||||
|
||||
# put footer (timestamp/rerun instructions) into session
|
||||
testMethod = getattr(self, self._testMethodName)
|
||||
if getattr(testMethod, "__benchmarks_test__", False):
|
||||
benchmarks = True
|
||||
else:
|
||||
benchmarks = False
|
||||
|
||||
import datetime
|
||||
print(
|
||||
"Session info generated @",
|
||||
datetime.datetime.now().ctime(),
|
||||
file=self.session)
|
||||
print(
|
||||
"To rerun this test, issue the following command from the 'test' directory:\n",
|
||||
file=self.session)
|
||||
print(
|
||||
"./dotest.py %s -v %s %s" %
|
||||
(self.getRunOptions(),
|
||||
('+b' if benchmarks else '-t'),
|
||||
self.getRerunArgs()),
|
||||
file=self.session)
|
||||
self.session.close()
|
||||
del self.session
|
||||
|
||||
|
|
Loading…
Reference in New Issue