kirk: Add results JSON to logs convertor script#53
kirk: Add results JSON to logs convertor script#53acerv merged 1 commit intolinux-test-project:masterfrom
Conversation
|
@acerv not sure if the checks failure is related to the json2logs.py, any suggestions will be welcome. |
The failures is unrelated to check library. It recently started to fail in the github CI and I didn't explore that yet. Locally all tests pass, so it's mostly a CI setup issue. |
Fixed by 28d9cfa |
eb9f87f to
55e4882
Compare
|
@wangli5665 any update about removing click dependency and simplifying strings handling? |
This patch introduces a new utility script, json2logs.py, which
converts kirk-style JSON test result files into traditional LTP
log formats. This is particularly useful for legacy log parsers
and test frameworks (e.g. Beaker) that rely on structured .log
outputs for automated analysis.
The script generates the output files:
*.log: A concise summary of test statuses
*.run.log: Detailed per-test logs with command, output, and duration
*.fails.log: Aggregated logs of failed tests only
python3 json2logs.py --resfile RUNTEST.json \
--sumfile RUNTEST.log --runfile RUNTEST.run.log --failfile RUNTEST.fail.log
This utility helps streamline integration with existing test result
processing systems and supports environments that still depend on
traditional LTP log structures.
Signed-off-by: Li Wang <liwang@redhat.com>
Yes, refreshed the PR. |
This patch introduces a new utility script, json2logs.py, which converts kirk-style JSON test result files into traditional LTP log formats. This is particularly useful for legacy log parsers and test frameworks (e.g. Beaker) that rely on structured .log outputs for automated analysis.
The script generates the output files:
*.log: A concise summary of test statuses
*.run.log: Detailed per-test logs with command, output, and duration
*.fails.log: Aggregated logs of failed tests only
python3 json2logs.py --resfile RUNTEST.json
--sumfile RUNTEST.log --runfile RUNTEST.run.log --failfile RUNTEST.fail.log
This utility helps streamline integration with existing test result processing systems and supports environments that still depend on traditional LTP log structures.
Reviewed-by: Andrea Cervesato andrea.cervesato@suse.com