Actions
action #112547
closedcoordination #68794: [qe-core][functional][epic] rework postfail hooks
[qe-core] test fails in groupwise - make coredumps more visible
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
Start date:
2022-06-15
Due date:
% Done:
0%
Estimated time:
Difficulty:
Sprint:
QE-Core: November Sprint 23 (Nov 15 - Dec 13)
Description
Observation¶
Sometimes reviewers will open tickets like #112514 because the failure is not obvious, if during the post_fail_hook
the coredump detection part, sees something... we should make it clear with a record info.
Latest example is:
https://openqa.suse.de/tests/12811611#step/postgresql_server/149
openQA test in scenario sle-15-SP3-Desktop-DVD-Updates-x86_64-qam-regression-message@64bit fails in
groupwise
Acceptance Criteria:¶
- An info box is displayed when there's a coredump in the SUT.
- When there's a coredump during the execution of a module, it is exported by the post fail hook
Suggestions¶
For both suggestions a fake asser_screen or assert_script_run call that is guaranteed to fail would cause the PFH to be called & executed:
- start xterm, then
kill -QUIT $xterm_process
- Use a test program that coredumps
void program_killer (){
// this generates a segmentation fault
volatile int *ptr = (int*)0;
*ptr = 0;
}
Actions