Skip to content

Commit

Permalink
schema: add arm linux as valid arch
Browse files Browse the repository at this point in the history
appc#284 as per comment by philips in rkt/rkt#730.
  • Loading branch information
Erik Nordstroem authored and Brandon Philips committed Apr 6, 2015
1 parent b415b12 commit fead40f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion schema/types/labels.go
Expand Up @@ -7,7 +7,7 @@ import (
)

var ValidOSArch = map[string][]string{
"linux": {"amd64", "i386"},
"linux": {"amd64", "i386", "arm"},
"freebsd": {"amd64", "i386", "arm"},
"darwin": {"x86_64", "i386"},
}
Expand Down
5 changes: 3 additions & 2 deletions schema/types/labels_test.go
Expand Up @@ -24,9 +24,10 @@ func TestLabels(t *testing.T) {
`bad os "OS/360"`,
},
{
`[{"name": "os", "value": "linux"}, {"name": "arch", "value": "arm"}]`,
`bad arch "arm" for linux`,
`[{"name": "os", "value": "linux"}, {"name": "arch", "value": "pdp11"}]`,
`bad arch "pdp11" for linux`,
},

{
`[{"name": "name"}]`,
`invalid label name: "name"`,
Expand Down

0 comments on commit fead40f

Please sign in to comment.