Revert "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 reverts commit d13647ee0f.
This commit is contained in:
Chris Bednarski 2015-08-21 16:45:47 -07:00
parent 1830c81eab
commit c8d1c650f0
1 changed files with 2 additions and 3 deletions

View File

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