mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
tests: verify carriage returns are parsed in distro files
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
@@ -34,6 +34,11 @@ func TestParseOsRelease(t *testing.T) {
|
|||||||
name: "redhat",
|
name: "redhat",
|
||||||
RawVersion: "8.1",
|
RawVersion: "8.1",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fixture: "test-fixtures/unprintable",
|
||||||
|
name: "debian",
|
||||||
|
RawVersion: "8",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
|
|||||||
@@ -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/"
|
||||||
Reference in New Issue
Block a user