mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
rename setup func to avoid name conflict
This commit is contained in:
parent
40c2b2a153
commit
7089e0854a
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ import (
|
|||
|
||||
type testCaseInit struct {
|
||||
name string
|
||||
init []func(*testing.T, testCaseInit)
|
||||
setup []func(*testing.T, testCaseInit)
|
||||
Meta Meta
|
||||
inPluginFolder map[string]string
|
||||
expectedPackerConfigDirHashBeforeInit string
|
||||
|
|
@ -303,7 +303,7 @@ func TestInitCommand_Run(t *testing.T) {
|
|||
_ = os.RemoveAll(tt.packerUserFolder)
|
||||
})
|
||||
os.Setenv("PACKER_CONFIG_DIR", tt.packerConfigDir)
|
||||
for _, init := range tt.init {
|
||||
for _, init := range tt.setup {
|
||||
init(t, tt)
|
||||
if t.Skipped() {
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue