Update platform tests to use the defaultOS

fix tests on windows

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2017-11-15 13:27:35 -05:00
parent 666d946455
commit fe5bb4a0fc

View File

@ -87,7 +87,7 @@ func TestParseSelector(t *testing.T) {
OS: defaultOS,
Architecture: "arm",
},
formatted: "linux/arm",
formatted: joinNotEmpty(defaultOS, "arm"),
},
{
input: "armel",
@ -96,7 +96,7 @@ func TestParseSelector(t *testing.T) {
Architecture: "arm",
Variant: "v6",
},
formatted: "linux/arm/v6",
formatted: joinNotEmpty(defaultOS, "arm/v6"),
},
{
input: "armhf",
@ -104,7 +104,7 @@ func TestParseSelector(t *testing.T) {
OS: defaultOS,
Architecture: "arm",
},
formatted: "linux/arm",
formatted: joinNotEmpty(defaultOS, "arm"),
},
{
input: "Aarch64",