@@ -322,17 +322,6 @@ func TestPoposDetector(t *testing.T) {
322322 assert .Equal (t , []string {"debian" , "linux" , "unix" , "os" }, di .Family )
323323}
324324
325- func TestWindriver7Detector (t * testing.T ) {
326- di , err := detectPlatformFromMock ("./testdata/detect-windriver7.toml" )
327- assert .Nil (t , err , "was able to create the provider" )
328-
329- assert .Equal (t , "wrlinux" , di .Name , "os name should be identified" )
330- assert .Equal (t , "Wind River Linux 7.0.0.2" , di .Title , "os title should be identified" )
331- assert .Equal (t , "7.0.0.2" , di .Version , "os version should be identified" )
332- assert .Equal (t , "x86_64" , di .Arch , "os arch should be identified" )
333- assert .Equal (t , []string {"linux" , "unix" , "os" }, di .Family )
334- }
335-
336325func TestOpenWrtDetector (t * testing.T ) {
337326 di , err := detectPlatformFromMock ("./testdata/detect-openwrt.toml" )
338327 assert .Nil (t , err , "was able to create the provider" )
@@ -1134,13 +1123,13 @@ func TestKDENeonDetector(t *testing.T) {
11341123 assert .Equal (t , []string {"debian" , "linux" , "unix" , "os" }, di .Family )
11351124}
11361125
1137- func TestWrlinuxDetector (t * testing.T ) {
1138- di , err := detectPlatformFromMock ("./testdata/detect-wrlinux .toml" )
1126+ func TestWindriver7Detector (t * testing.T ) {
1127+ di , err := detectPlatformFromMock ("./testdata/detect-windriver7 .toml" )
11391128 assert .Nil (t , err , "was able to create the provider" )
11401129
11411130 assert .Equal (t , "wrlinux" , di .Name , "os name should be identified" )
1142- assert .Equal (t , "Wind River Linux 6 .0.0.25 " , di .Title , "os title should be identified" )
1143- assert .Equal (t , "6 .0.0.25 " , di .Version , "os version should be identified" )
1131+ assert .Equal (t , "Wind River Linux 7 .0.0.2 " , di .Title , "os title should be identified" )
1132+ assert .Equal (t , "7 .0.0.2 " , di .Version , "os version should be identified" )
11441133 assert .Equal (t , "x86_64" , di .Arch , "os arch should be identified" )
11451134 assert .Equal (t , []string {"linux" , "unix" , "os" }, di .Family )
11461135}
0 commit comments