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.
7 lines
215 B
Bash
Executable File
7 lines
215 B
Bash
Executable File
#!/bin/bash
|
|
# Wrapper so chamuyero scripts can invoke chasquid-util for testing.
|
|
|
|
# Run from the config directory because data_dir is relative.
|
|
cd config || exit 1
|
|
../../../cmd/chasquid-util/chasquid-util -C=. "$@"
|