Fix unintended BC issues in ISO option refactoring
This commit is contained in:
parent
cdcffecc2d
commit
c3d77dc5a1
|
@ -21,10 +21,10 @@ import (
|
|||
const BuilderId = "transcend.qemu"
|
||||
|
||||
var accels = map[string]struct{}{
|
||||
"none": {},
|
||||
"kvm": {},
|
||||
"tcg": {},
|
||||
"xen": {},
|
||||
"none": struct{}{},
|
||||
"kvm": struct{}{},
|
||||
"tcg": struct{}{},
|
||||
"xen": struct{}{},
|
||||
}
|
||||
|
||||
var netDevice = map[string]bool{
|
||||
|
|
|
@ -497,7 +497,7 @@ func TestBuilderPrepare_QemuArgs(t *testing.T) {
|
|||
|
||||
// Test with a good one
|
||||
config["qemuargs"] = [][]interface{}{
|
||||
{"foo", "bar", "baz"},
|
||||
[]interface{}{"foo", "bar", "baz"},
|
||||
}
|
||||
|
||||
b = Builder{}
|
||||
|
@ -510,7 +510,7 @@ func TestBuilderPrepare_QemuArgs(t *testing.T) {
|
|||
}
|
||||
|
||||
expected := [][]string{
|
||||
{"foo", "bar", "baz"},
|
||||
[]string{"foo", "bar", "baz"},
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(b.config.QemuArgs, expected) {
|
||||
|
|
Loading…
Reference in New Issue