Skip to content

Commit 4a1bc31

Browse files
committed
plugins_integration: record crash reports before the site is updated.
Within 'test_plugin_update', So that during test-teardown, the recorded crash reports occurring before the site update are ignored. CMK-28634 Change-Id: I4844271a8bedf07073492c78146dd870de6fa8a0
1 parent 16dfcf6 commit 4a1bc31

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/plugins_integration/test_plugin_update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def _collect_test_site_base_data(
7070
base_data[host_name].pop(skipped_check)
7171

7272
base_data_status_ok[host_name] = get_services_with_status(base_data[host_name], 0)
73+
# Record crash reports. Such crash reports are ignored during per-test validations
74+
# performed in tests.conftest::pytest_runtest_teardown
75+
test_site_base.known_crashes.update(test_site_base.crash_reports_dirs())
7376
return test_site_base, psd_rules_base, base_data, base_data_status_ok
7477

7578

0 commit comments

Comments
 (0)