mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
.builds: fix go fmt test and go fmt -w -s .
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -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 .)"
|
||||||
|
|||||||
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user