diff --git a/test/commands_test.go b/test/commands_test.go index 56d2d3345..3251ee3ad 100644 --- a/test/commands_test.go +++ b/test/commands_test.go @@ -76,7 +76,7 @@ func (pc *packerCommand) Run() (string, string, error) { } func (pc *packerCommand) doRun() { - cmd := exec.Command("packer", pc.args...) + cmd := exec.Command(pc.packerPath, pc.args...) for key, val := range pc.env { cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", key, val)) }