.builds: fix go fmt test and go fmt -w -s .

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-05 12:50:07 +01:00
parent 900acc08a1
commit 4719d56f86
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,4 +39,4 @@ tasks:
go test -race ./... go test -race ./...
- check_gofmt: | - check_gofmt: |
cd gio cd gio
test -z $(gofmt -s -l .) test -z "$(gofmt -s -l .)"
+1 -1
View File
@@ -72,7 +72,7 @@ func (d *WaylandTestDriver) Start(t_ *testing.T, path string, width, height int)
cleanups = append(cleanups, func() { os.RemoveAll(dir) }) cleanups = append(cleanups, func() { os.RemoveAll(dir) })
bin := filepath.Join(dir, "red") bin := filepath.Join(dir, "red")
flags := []string{"build", "-tags", "nox11", "-o="+bin} flags := []string{"build", "-tags", "nox11", "-o=" + bin}
if raceEnabled { if raceEnabled {
flags = append(flags, "-race") flags = append(flags, "-race")
} }
+1 -1
View File
@@ -69,7 +69,7 @@ func (d *X11TestDriver) Start(t_ *testing.T, path string, width, height int) (cl
cleanups = append(cleanups, func() { os.RemoveAll(dir) }) cleanups = append(cleanups, func() { os.RemoveAll(dir) })
bin := filepath.Join(dir, "red") bin := filepath.Join(dir, "red")
flags := []string{"build", "-tags", "nowayland", "-o="+bin} flags := []string{"build", "-tags", "nowayland", "-o=" + bin}
if raceEnabled { if raceEnabled {
flags = append(flags, "-race") flags = append(flags, "-race")
} }