Merge pull request #8170 from alrs/fix-vmware-dropped-errors
builder/vmware: fix dropped test errors
This commit is contained in:
commit
93884a81d4
|
@ -69,6 +69,9 @@ func TestESX5Driver_CommHost(t *testing.T) {
|
|||
|
||||
var commConfig communicator.Config
|
||||
err := config.Decode(&commConfig, nil, conf)
|
||||
if err != nil {
|
||||
t.Fatalf("error decoding config: %v", err)
|
||||
}
|
||||
state := new(multistep.BasicStateBag)
|
||||
sshConfig := SSHConfig{Comm: commConfig}
|
||||
state.Put("sshConfig", &sshConfig)
|
||||
|
|
|
@ -17,6 +17,9 @@ func testVMXFile(t *testing.T) string {
|
|||
|
||||
// displayName must always be set
|
||||
err = WriteVMX(tf.Name(), map[string]string{"displayName": "PackerBuild"})
|
||||
if err != nil {
|
||||
t.Fatalf("error writing .vmx file: %v", err)
|
||||
}
|
||||
tf.Close()
|
||||
|
||||
return tf.Name()
|
||||
|
|
|
@ -168,6 +168,9 @@ func setupVMwareBuild(t *testing.T, builderConfig map[string]string, provisioner
|
|||
}
|
||||
|
||||
warn, err := b.Prepare()
|
||||
if err != nil {
|
||||
t.Fatalf("error preparing build: %v", err)
|
||||
}
|
||||
if len(warn) > 0 {
|
||||
for _, w := range warn {
|
||||
t.Logf("Configuration warning: %s", w)
|
||||
|
|
Loading…
Reference in New Issue