From d13647ee0f9ed8726781a01b7772f3e58c2d149a Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Thu, 20 Aug 2015 14:03:16 -0700 Subject: [PATCH] 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. --- builder/qemu/builder_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builder/qemu/builder_test.go b/builder/qemu/builder_test.go index 84d1d40c3..5e96d2fa7 100644 --- a/builder/qemu/builder_test.go +++ b/builder/qemu/builder_test.go @@ -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) }