commit | bb9366d06d02d732efbb7fc1e8ae86fe01dcf29e | [log] [tgz] |
---|---|---|
author | Tim Lee <timlee660101@gmail.com> | Thu Jun 24 14:00:07 2021 +0800 |
committer | Tim Lee <timlee660101@gmail.com> | Fri Jun 25 16:36:20 2021 +0800 |
tree | 38f051438e88768e4c6ac767814ce7b814a77854 | |
parent | 6341919fc147335ce64d838435d4a7b9bc625f62 [diff] |
Adjust current size of total dump files in dump directory Symptom: "Verify Maximum BMC Dump Creation" test item got failed sometimes. This test item expect that dump space is enough to create a new BMC dump file. But, dump manager doesn't think dump space is enough to create according to current size of dump directory. Root cause: dump manager is using std::filesystem::file_size to calculate total size of dump log files in dump directory. Then total size is divided by 1024 convert to KB. However, test item is using linux command "du -s" to calculate total size of dump log files in dump directory. The calculation result is different between dump manager and test item then cause test got failed sometimes. Solution: calculate each dump file with std::ceil() and convert size to KB then calculate total dump files size in dump directory. That's can reduce size difference of total dump files between dump manager and test item then avoid this test got failed. Tested: Run 3~4 times robot Verify_Maximum_BMC_Dump_Creation redfish/managers/test_bmc_dumps.robot Verify Maximum BMC Dump Creation :: Create maximum BMC dump and ve... | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed Signed-off-by: Tim Lee <timlee660101@gmail.com> Change-Id: Ic1a6d941d12516678ff21789355941653d319858
Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.
To build this package with meson, do the following steps:
1. meson builddir 2. ninja -C builddir
To clean the built files run ninja -C builddir clean
.
Tests can be run in the CI docker container, refer local-ci-build
or with an OpenBMC x86 sdk(see below for x86 steps).
meson -Doe-sdk=enabled -Dtests=enabled build ninja -C build test