Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break up LastTest.log of /static-checks/rpmbuild-ctest #256

Open
comps opened this issue Aug 18, 2024 · 0 comments
Open

Break up LastTest.log of /static-checks/rpmbuild-ctest #256

comps opened this issue Aug 18, 2024 · 0 comments

Comments

@comps
Copy link
Contributor

comps commented Aug 18, 2024

The log can be several MBs (typically 6-8MB) and contains results for all tests executed, even passed ones.

Modify the test to provide a sectioned-off log file for each of the sub-results, like /per-rule does, so that logs for passed tests can be discarded if needed.

Ie. instead of ctest_results, iterate directly over LastTest.log, matching on sections like

18/43 Testing: test-generate_contributors
18/43 Test: test-generate_contributors
Command: "/usr/bin/env" "PYTHONPATH=/root/content:../.." "/usr/bin/python3" "/root/content/utils/generate_contributors.py" "--dry-run"
Directory: /root/content/build/tests
"test-generate_contributors" start time: Aug 17 23:18 CEST
Output:
----------------------------------------------------------

as a starting barrier, and

<end of output>
Test time =   0.02 sec
----------------------------------------------------------
Test Passed.
"test-generate_contributors" end time: Aug 17 23:18 CEST
"test-generate_contributors" time elapsed: 00:00:00
----------------------------------------------------------

as the ending barrier, extracting test name, pass/fail/etc. from it, and submitting any test output between the barriers as a log file to results.report().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant