Skip to content

Commit

Permalink
Add DEPS_TEST to test runner and use os environ in component install
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Sep 12, 2019
1 parent f8573e1 commit 0abcab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/component/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (r *Runner) Install() error {

cmd := exec.Command("sh", "-c", command)
cmd.Dir = r.Path
cmd.Env = r.Env
cmd.Env = append(os.Environ(), r.Env...)
if output.IsDebug() {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down
2 changes: 2 additions & 0 deletions internal/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func Run() error {
return err
}

runner.Env = append(runner.Env, "DEPS_TEST=true")

if err := runner.Install(); err != nil {
return err
}
Expand Down

0 comments on commit 0abcab6

Please sign in to comment.