From fead40fe7a310585dd3c892c4e8371b3d33024de Mon Sep 17 00:00:00 2001 From: Erik Nordstroem Date: Mon, 6 Apr 2015 03:09:41 +0200 Subject: [PATCH] schema: add arm linux as valid arch appc/spec#284 as per comment by philips in coreos/rkt#730. --- schema/types/labels.go | 2 +- schema/types/labels_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/schema/types/labels.go b/schema/types/labels.go index b8317f32..ce182db7 100644 --- a/schema/types/labels.go +++ b/schema/types/labels.go @@ -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"}, } diff --git a/schema/types/labels_test.go b/schema/types/labels_test.go index 90d0578c..7785d7cb 100644 --- a/schema/types/labels_test.go +++ b/schema/types/labels_test.go @@ -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"`,