Skip to content

Commit 6b8a45a

Browse files
committed
Go through bios_data keys in a deterministic way
This is to prevent a bug in python3.5 when running the unit tests, since dictionaries are unordered.
1 parent 78c8c9a commit 6b8a45a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

checkbox-ng/checkbox_ng/support/device_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_bios_info() -> dict:
5454
}
5555
bios_root = Path("/sys/class/dmi/id/")
5656
bios_data_name = "bios_{}"
57-
for key in bios_data:
57+
for key in sorted(bios_data.keys()):
5858
try:
5959
value = (
6060
(bios_root / bios_data_name.format(key)).read_text().strip()

0 commit comments

Comments
 (0)