feat: add testing support for crypto initialization and process management, including auto-recovery and filtering of go wrapper processes
This commit is contained in:
@@ -20,6 +20,11 @@ start_agent() {
|
||||
|
||||
# Build the binary first to avoid go run wrapper PID issues
|
||||
if [[ ! -x "$bin" ]] || [[ "$(find ./cmd/launcher -newer "$bin" 2>/dev/null | head -1)" ]]; then
|
||||
info "Ejecutando tests..."
|
||||
"$GO" test -tags goolm ./... || {
|
||||
fail "$id tests fallaron — corrige antes de compilar"
|
||||
return 1
|
||||
}
|
||||
info "Compilando launcher..."
|
||||
mkdir -p "$(dirname "$bin")"
|
||||
"$GO" build -tags goolm -o "$bin" ./cmd/launcher || {
|
||||
|
||||
Reference in New Issue
Block a user