From 4719d56f86109cf8f13095abb75e1be844842310 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 5 Nov 2019 12:50:07 +0100 Subject: [PATCH] .builds: fix go fmt test and go fmt -w -s . Signed-off-by: Elias Naur --- .builds/linux.yml | 2 +- cmd/gogio/wayland_test.go | 2 +- cmd/gogio/x11_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.builds/linux.yml b/.builds/linux.yml index e0a5af23..e5502d4a 100644 --- a/.builds/linux.yml +++ b/.builds/linux.yml @@ -39,4 +39,4 @@ tasks: go test -race ./... - check_gofmt: | cd gio - test -z $(gofmt -s -l .) + test -z "$(gofmt -s -l .)" diff --git a/cmd/gogio/wayland_test.go b/cmd/gogio/wayland_test.go index 5294d07d..6e71821c 100644 --- a/cmd/gogio/wayland_test.go +++ b/cmd/gogio/wayland_test.go @@ -72,7 +72,7 @@ func (d *WaylandTestDriver) Start(t_ *testing.T, path string, width, height int) cleanups = append(cleanups, func() { os.RemoveAll(dir) }) bin := filepath.Join(dir, "red") - flags := []string{"build", "-tags", "nox11", "-o="+bin} + flags := []string{"build", "-tags", "nox11", "-o=" + bin} if raceEnabled { flags = append(flags, "-race") } diff --git a/cmd/gogio/x11_test.go b/cmd/gogio/x11_test.go index 88b965fd..008c496c 100644 --- a/cmd/gogio/x11_test.go +++ b/cmd/gogio/x11_test.go @@ -69,7 +69,7 @@ func (d *X11TestDriver) Start(t_ *testing.T, path string, width, height int) (cl cleanups = append(cleanups, func() { os.RemoveAll(dir) }) bin := filepath.Join(dir, "red") - flags := []string{"build", "-tags", "nowayland", "-o="+bin} + flags := []string{"build", "-tags", "nowayland", "-o=" + bin} if raceEnabled { flags = append(flags, "-race") }