Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/distro/distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def id() -> str:
"midnightbsd" MidnightBSD
"rocky" Rocky Linux
"aix" AIX
"guix" Guix System
============== =========================================

If you have a need to get distros for reliable IDs added into this set,
Expand Down
8 changes: 8 additions & 0 deletions tests/resources/distros/guix/etc/os-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NAME="Guix System"
ID=guix
PRETTY_NAME="Guix System"
LOGO=guix-icon
HOME_URL="https://guix.gnu.org"
DOCUMENTATION_URL="https://guix.gnu.org/en/manual"
SUPPORT_URL="https://guix.gnu.org/en/help"
BUG_REPORT_URL="https://lists.gnu.org/mailman/listinfo/bug-guix"
8 changes: 8 additions & 0 deletions tests/test_distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ def test_fedora30_os_release(self) -> None:
}
self._test_outcome(desired_outcome)

def test_guix_os_release(self) -> None:
desired_outcome = {
"id": "guix",
"name": "Guix System",
"pretty_name": "Guix System",
}
self._test_outcome(desired_outcome)

def test_kvmibm1_os_release(self) -> None:
desired_outcome = {
"id": "kvmibm",
Expand Down