kunit_json.py (885210d348f71e14b91bdf626d5d9039bf1afb03) kunit_json.py (0453f984a7b9458f0e469afb039f2841308b1bef)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Generates JSON from KUnit results according to
4# KernelCI spec: https://github.com/kernelci/kernelci-doc/wiki/Test-API
5#
6# Copyright (C) 2020, Google LLC.
7# Author: Heidi Fahim <heidifahim@google.com>
8
9from dataclasses import dataclass
10import json
1# SPDX-License-Identifier: GPL-2.0
2#
3# Generates JSON from KUnit results according to
4# KernelCI spec: https://github.com/kernelci/kernelci-doc/wiki/Test-API
5#
6# Copyright (C) 2020, Google LLC.
7# Author: Heidi Fahim <heidifahim@google.com>
8
9from dataclasses import dataclass
10import json
11import os
11from typing import Any, Dict
12
12
13import kunit_parser
14
15from kunit_parser import Test, TestStatus
13from kunit_parser import Test, TestStatus
16from typing import Any, Dict
17
18@dataclass
19class Metadata:
20 """Stores metadata about this run to include in get_json_result()."""
21 arch: str = ''
22 def_config: str = ''
23 build_dir: str = ''
24

--- 42 unchanged lines hidden ---
14
15@dataclass
16class Metadata:
17 """Stores metadata about this run to include in get_json_result()."""
18 arch: str = ''
19 def_config: str = ''
20 build_dir: str = ''
21

--- 42 unchanged lines hidden ---