diff --git a/imgbom/distro/identify_test.go b/imgbom/distro/identify_test.go index b21899dac..671f012a3 100644 --- a/imgbom/distro/identify_test.go +++ b/imgbom/distro/identify_test.go @@ -34,6 +34,11 @@ func TestParseOsRelease(t *testing.T) { name: "redhat", RawVersion: "8.1", }, + { + fixture: "test-fixtures/unprintable", + name: "debian", + RawVersion: "8", + }, } for _, test := range tests { diff --git a/imgbom/distro/test-fixtures/unprintable b/imgbom/distro/test-fixtures/unprintable new file mode 100644 index 000000000..fa9c6b547 --- /dev/null +++ b/imgbom/distro/test-fixtures/unprintable @@ -0,0 +1,8 @@ +PRETTY_NAME="Debian GNU/Linux 8 (jessie)" +NAME="Debian GNU/Linux" +VERSION_ID="8" +VERSION="8 (jessie)" +ID=debian +HOME_URL="http://www.debian.org/" +SUPPORT_URL="http://www.debian.org/support" +BUG_REPORT_URL="https://bugs.debian.org/"