Remove valgrind

This commit is contained in:
Alex Kursell 2019-04-12 12:09:52 -04:00
parent ac043771ff
commit ae592821c6
2 changed files with 0 additions and 16 deletions

View file

@ -94,7 +94,6 @@ clean-install \
libmaxminddb-dev \
dumb-init \
gdb \
valgrind \
bc \
|| exit 1

View file

@ -18,7 +18,6 @@ package controller
import (
"fmt"
"os"
"os/exec"
"syscall"
@ -80,23 +79,9 @@ const (
cfgPath = "/etc/nginx/nginx.conf"
)
var valgrind = []string{
"--tool=memcheck",
"--leak-check=full",
"--show-leak-kinds=all",
"--leak-check=yes",
}
func nginxExecCommand(args ...string) *exec.Cmd {
cmdArgs := []string{}
if os.Getenv("RUN_WITH_VALGRIND") == "true" {
cmdArgs = append(cmdArgs, valgrind...)
cmdArgs = append(cmdArgs, defBinary, "-c", cfgPath)
cmdArgs = append(cmdArgs, args...)
return exec.Command("valgrind", cmdArgs...)
}
cmdArgs = append(cmdArgs, "-c", cfgPath)
cmdArgs = append(cmdArgs, args...)
return exec.Command(defBinary, cmdArgs...)