Skip to content

Commit

Permalink
tests: ui: fix crash file generation to also contain Dependencies field
Browse files Browse the repository at this point in the history
We started collecting deps in the initial crash file to hopefully have a
more exact picture of the system at the time of the crash. This should
also be reflected in the test data.

This enables coverage for the commit
"ui: don't rely on Dependencies to know if collect_info() has been run"

Signed-off-by: Simon Chopin <simon.chopin@canonical.com>
  • Loading branch information
schopin-pro authored and bdrung committed Oct 17, 2023
1 parent 3c1bf85 commit 5b2ee88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def _gen_test_crash(self):
r.add_proc_info(pid)
r.add_user_info()
r.add_os_info()
r.add_package_info()

# generate a core dump
os.kill(pid, signal.SIGSEGV)
Expand Down

0 comments on commit 5b2ee88

Please sign in to comment.