mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 07:31:28 +00:00
Split up the runCmd trace printing to print the command before running.
That way if the command crashes you still know what it was. Differential Revision: https://reviews.llvm.org/D154752
This commit is contained in:
parent
6c47654efd
commit
01e3393b94
@ -2059,12 +2059,14 @@ class TestBase(Base, metaclass=LLDBTestCaseFactory):
|
||||
running = cmd.startswith("run") or cmd.startswith("process launch")
|
||||
|
||||
for i in range(self.maxLaunchCount if running else 1):
|
||||
self.ci.HandleCommand(cmd, self.res, inHistory)
|
||||
|
||||
with recording(self, trace) as sbuf:
|
||||
print("runCmd:", cmd, file=sbuf)
|
||||
if not check:
|
||||
print("check of return status not required", file=sbuf)
|
||||
|
||||
self.ci.HandleCommand(cmd, self.res, inHistory)
|
||||
|
||||
with recording(self, trace) as sbuf:
|
||||
if self.res.Succeeded():
|
||||
print("output:", self.res.GetOutput(), file=sbuf)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user