osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41153?usp=email )
Change subject: testenv: add empty lines around backtrace ......................................................................
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(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/53/41153/1
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)