From 41bbf437e1e843fd3ab5603ec4c2eb4a42dca76f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 18 Aug 2017 11:14:20 +0200 Subject: Makefile: enforce formatting of sys files in presubmit --- pkg/ast/parser_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'pkg/ast') diff --git a/pkg/ast/parser_test.go b/pkg/ast/parser_test.go index 521078805..43587d7a3 100644 --- a/pkg/ast/parser_test.go +++ b/pkg/ast/parser_test.go @@ -42,12 +42,10 @@ func TestParseAll(t *testing.T) { if len(top) != len(top2) { t.Fatalf("formatting number of top level decls: %v/%v", len(top), len(top2)) } - if false { - // While sys files are not formatted, formatting in fact changes it. - for i := range top { - if !reflect.DeepEqual(top[i], top2[i]) { - t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", top[i], top2[i]) - } + // While sys files are not formatted, formatting in fact changes it. + for i := range top { + if !reflect.DeepEqual(top[i], top2[i]) { + t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", top[i], top2[i]) } } } -- cgit mrf-deployment