Skip to content

Commit 58d22f1

Browse files
committed
Unconditional logging lldbtest.py
1 parent 88fb56e commit 58d22f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/packages/Python/lldbsuite/test/lldbtest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ def runCmd(self, cmd, msg=None, check=True, trace=False, inHistory=False):
967967

968968
running = cmd.startswith("run") or cmd.startswith("process launch")
969969

970+
print("runCmd:", cmd)
970971
for i in range(self.maxLaunchCount if running else 1):
971972
with recording(self, trace) as sbuf:
972973
print("runCmd:", cmd, file=sbuf)
@@ -982,6 +983,8 @@ def runCmd(self, cmd, msg=None, check=True, trace=False, inHistory=False):
982983
print("runCmd failed!", file=sbuf)
983984
print(self.res.GetError(), file=sbuf)
984985

986+
print("output:", self.res.GetOutput())
987+
985988
if self.res.Succeeded():
986989
break
987990
elif running:
@@ -1487,9 +1490,11 @@ def build(
14871490
self.runBuildCommand(command)
14881491

14891492
def runBuildCommand(self, command):
1493+
print('runBuildCommand ', seven.join_for_shell(command))
14901494
self.trace(seven.join_for_shell(command))
14911495
try:
14921496
output = check_output(command, stderr=STDOUT, errors="replace")
1497+
print("output:", output)
14931498
except CalledProcessError as cpe:
14941499
raise build_exception.BuildError(cpe)
14951500
self.trace(output)

0 commit comments

Comments
 (0)