Skip to content

Commit

Permalink
Use parent ENV and append to that.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Jul 20, 2023
1 parent fc30ef7 commit 35eac4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,11 @@ func main() {
log.Printf("Running make build...")
command := exec.Command("make", "build")
if !*buildVTAdmin {
command.Env = append(command.Env, "NOVTADMINBUILD=1")
command.Env = append(os.Environ(), "NOVTADMINBUILD=1")
}
if out, err := command.CombinedOutput(); err != nil || command.ProcessState.ExitCode() != 0 {
log.Fatalf("make build failed; exit code: error text: %v\n%s", err, out)
log.Fatalf("make build failed; exit code: %d, error: output: %v\n%s",
command.ProcessState.ExitCode(), err, out)
}
}

Expand Down

0 comments on commit 35eac4f

Please sign in to comment.