mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-07 17:47:14 +00:00
test: Don't run "go build" each time a helper is invoked
Our tests invoke a variety of helpers, some of them are written in Go. Today, we call "go build" (directly or indirectly via "go run"), which is a bit wasteful and slows down the tests. This patch makes the tests only build our Go helpers once every 10s at most. The solution is a bit hacky but in the context of these tests, it's practical.
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
|
||||
# Run from the config directory because data_dir is relative.
|
||||
cd config || exit 1
|
||||
go run ../../../cmd/chasquid-util/ -C=. "$@"
|
||||
../../../cmd/chasquid-util/chasquid-util -C=. "$@"
|
||||
|
||||
Reference in New Issue
Block a user