Skip to content

Commit d2dba97

Browse files
committed
Add BIOS info to system_info collector and bump it to v5
1 parent f47df51 commit d2dba97

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

checkbox-ng/plainbox/impl/session/system_information.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CollectorOutputs(dict):
1818
collector will include in its output
1919
"""
2020

21-
COLLECTOR_OUTPUTS_VERSION = 4
21+
COLLECTOR_OUTPUTS_VERSION = 5
2222

2323
def to_json(self) -> str:
2424
to_dump = {
@@ -393,6 +393,16 @@ def __init__(self):
393393
)
394394

395395

396+
class BiosCollector(Collector):
397+
COLLECTOR_NAME = "bios"
398+
399+
def __init__(self):
400+
super().__init__(
401+
collection_cmd=["device-info", "bios"],
402+
version_cmd=["echo", "-n", checkbox_version],
403+
)
404+
405+
396406
if __name__ == "__main__":
397407
collection = collect()
398408
print(collection.to_json())

0 commit comments

Comments
 (0)