osmith submitted this change.
testenv: add empty lines around backtrace
Make the backtrace stand out visually from the rest of the logs.
Change-Id: Icd75379a875b72ddf3364895bc6a0afc57d2901e
---
M _testenv/testenv/coredump.py
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/_testenv/testenv/coredump.py b/_testenv/testenv/coredump.py
index d3fa35f..d436551 100644
--- a/_testenv/testenv/coredump.py
+++ b/_testenv/testenv/coredump.py
@@ -118,12 +118,13 @@
logging.info("Running gdb to get a backtrace")
- cmd = "gdb"
+ cmd = "echo; gdb"
cmd += " --batch"
cmd += f" {shlex.quote(executable_path)}"
cmd += f" {shlex.quote(core_path)}"
cmd += " -ex bt"
- cmd += f" | tee {shlex.quote(core_path)}.backtrace"
+ cmd += f" | tee {shlex.quote(core_path)}.backtrace;"
+ cmd += " echo"
testenv.cmd.run(cmd)
To view, visit change 41153. To unsubscribe, or for help writing mail filters, visit settings.