Skip to content

Commit cbb7fad

Browse files
jolivainSamuel FORESTIER
authored andcommitted
Add Buildroot (#329)
1 parent f3fe761 commit cbb7fad

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

distro.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def id():
203203
"opensuse" openSUSE
204204
"amzn" Amazon Linux
205205
"arch" Arch Linux
206+
"buildroot" Buildroot
206207
"cloudlinux" CloudLinux OS
207208
"exherbo" Exherbo Linux
208209
"gentoo" GenToo Linux
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
NAME=Buildroot
2+
VERSION=2022.02
3+
ID=buildroot
4+
VERSION_ID=2022.02
5+
PRETTY_NAME="Buildroot 2022.02"

tests/test_distro.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,17 @@ def test_arch_os_release(self):
164164
}
165165
self._test_outcome(desired_outcome)
166166

167+
def test_buildroot_os_release(self):
168+
desired_outcome = {
169+
"id": "buildroot",
170+
"name": "Buildroot",
171+
"pretty_name": "Buildroot 2022.02",
172+
"version": "2022.02",
173+
"pretty_version": "2022.02",
174+
"best_version": "2022.02",
175+
}
176+
self._test_outcome(desired_outcome)
177+
167178
def test_kali_os_release(self):
168179
desired_outcome = {
169180
"id": "kali",

0 commit comments

Comments
 (0)