Updated test for qemu VMName. Previously (0.7.5) a file extension was automatically added to the VMname but this logic is not exposed for testing.

This commit is contained in:
Chris Bednarski 2015-08-20 14:03:16 -07:00
parent 133d76f557
commit d13647ee0f
1 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
package qemu
import (
"github.com/mitchellh/packer/packer"
"io/ioutil"
"os"
"reflect"
"testing"
"github.com/mitchellh/packer/packer"
)
var testPem = `
@ -83,7 +84,7 @@ func TestBuilderPrepare_Defaults(t *testing.T) {
t.Errorf("bad ssh port: %d", b.config.Comm.SSHPort)
}
if b.config.VMName != "packer-foo" {
if b.config.VMName != "packer-foo.qcow2" {
t.Errorf("bad vm name: %s", b.config.VMName)
}