osmith submitted this change.

View Change

Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
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.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Icd75379a875b72ddf3364895bc6a0afc57d2901e
Gerrit-Change-Number: 41153
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>