Skip to content

Commit

Permalink
Add Buildroot (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolivain authored and Samuel FORESTIER committed Jun 7, 2022
1 parent f3fe761 commit cbb7fad
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def id():
"opensuse" openSUSE
"amzn" Amazon Linux
"arch" Arch Linux
"buildroot" Buildroot
"cloudlinux" CloudLinux OS
"exherbo" Exherbo Linux
"gentoo" GenToo Linux
Expand Down
5 changes: 5 additions & 0 deletions tests/resources/distros/buildroot/etc/os-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NAME=Buildroot
VERSION=2022.02
ID=buildroot
VERSION_ID=2022.02
PRETTY_NAME="Buildroot 2022.02"
11 changes: 11 additions & 0 deletions tests/test_distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ def test_arch_os_release(self):
}
self._test_outcome(desired_outcome)

def test_buildroot_os_release(self):
desired_outcome = {
"id": "buildroot",
"name": "Buildroot",
"pretty_name": "Buildroot 2022.02",
"version": "2022.02",
"pretty_version": "2022.02",
"best_version": "2022.02",
}
self._test_outcome(desired_outcome)

def test_kali_os_release(self):
desired_outcome = {
"id": "kali",
Expand Down

0 comments on commit cbb7fad

Please sign in to comment.