Add method for checking OS version.
This commit is contained in:
parent
62d1724db6
commit
5b14f8d820
4 changed files with 64 additions and 0 deletions
10
tests/unit_tests/assets/os-release
Normal file
10
tests/unit_tests/assets/os-release
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
|
||||
NAME="Debian GNU/Linux"
|
||||
VERSION_ID="13"
|
||||
VERSION="13 (trixie)"
|
||||
VERSION_CODENAME=trixie
|
||||
DEBIAN_VERSION_FULL=13.4
|
||||
ID=debian
|
||||
HOME_URL="https://www.debian.org/"
|
||||
SUPPORT_URL="https://www.debian.org/support"
|
||||
BUG_REPORT_URL="https://bugs.debian.org/"
|
||||
1
tests/unit_tests/assets/os-release-broken
Normal file
1
tests/unit_tests/assets/os-release-broken
Normal file
|
|
@ -0,0 +1 @@
|
|||
This doesn't contain the data we are looking for.
|
||||
Loading…
Add table
Add a link
Reference in a new issue