pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38848?usp=email )
Change subject: testenv: print backtrace on startup fail too
......................................................................
testenv: print backtrace on startup fail too
When a program fails to start up, look for the coredump and print a
backtrace if it was found (instead of only doing it if a program
crashes later on).
Change-Id: I66a55dcfdab17d035ce6425220763a85b5b6dc90
---
M _testenv/testenv/daemons.py
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
fixeria: Looks good to me, approved
diff --git a/_testenv/testenv/daemons.py b/_testenv/testenv/daemons.py
index 0c9c0dd..86f3979 100644
--- a/_testenv/testenv/daemons.py
+++ b/_testenv/testenv/daemons.py
@@ -68,6 +68,7 @@
# Wait 200ms and check if it is still running
time.sleep(0.2)
if daemons[section].poll() is not None:
+ testenv.coredump.get_from_coredumpctl()
raise testenv.NoTraceException(f"program failed to start:
{program}")
# Run setup script
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38848?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I66a55dcfdab17d035ce6425220763a85b5b6dc90
Gerrit-Change-Number: 38848
Gerrit-PatchSet: 5
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>