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