linux-test-project / kirk

Kirk application aims to merge multiple Linux testing frameworks in one tool.
GNU General Public License v2.0
6 stars 7 forks source link

The stats in results.json only outputs the stat for the first test suite, instead of including all test suites. #25

Closed jkchen1095 closed 1 month ago

jkchen1095 commented 1 month ago

https://github.com/linux-test-project/kirk/blob/master/libkirk/export.py#L97

The stat field seems intended to output the total summary of all test suites, rather than just the first test suite. Otherwise, each suite should have its own local stat.

    "stats": {
        "runtime": 0.010498046875,
        "passed": 0,
        "failed": 0,
        "broken": 0,
        "skipped": 5,
        "warnings": 0
    },
    "environment": {
        "distribution": "ubuntu",
        "distribution_version": "22.04",
        "kernel": "Linux 6.1.27 #1 SMP PREEMPT_DYNAMIC Wed Sep 11 15:08:20 CST 2024",
        "arch": "x86_64",
        "cpu": "x86_64",
        "swap": "4194300 kB",
        "RAM": "16379988 kB"
    }