Skip to content

Commit

Permalink
Use more generic 'codename' for mSystem in test_generic
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
  • Loading branch information
npmitche committed Sep 3, 2024
1 parent ce3379c commit 1c1ac1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hardware/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
try:
from distro import os_release_info
os_info = os_release_info()
mSystem = (os_info['name'], os_info['version_id'], os_info['release_codename'])
except:
mSystem = (os_info['name'], os_info['version_id'], os_info['codename'])
except Exception:
if platform.system() == "Windows":
# Windows does not have a "distribution"
mSystem = None
Expand Down

0 comments on commit 1c1ac1e

Please sign in to comment.