Update init_test.go

This commit is contained in:
Adrien Delorme 2021-02-11 15:26:33 +01:00
parent ad0ce49cec
commit b321c64c1e
1 changed files with 2 additions and 1 deletions

View File

@ -223,6 +223,8 @@ func TestInitCommand_Run(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
log.Printf("starting %s", tt.name)
log.Printf("%#v", tt)
t.Cleanup(func() { t.Cleanup(func() {
_ = os.RemoveAll(tt.packerConfigDir) _ = os.RemoveAll(tt.packerConfigDir)
}) })
@ -235,7 +237,6 @@ func TestInitCommand_Run(t *testing.T) {
return return
} }
} }
log.Printf("starting %s", tt.name)
createFiles(tt.packerConfigDir, tt.inPluginFolder) createFiles(tt.packerConfigDir, tt.inPluginFolder)
createFiles(tt.packerUserFolder, tt.inConfigFolder) createFiles(tt.packerUserFolder, tt.inConfigFolder)