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"
|
const BuilderId = "transcend.qemu"
|
||||||
|
|
||||||
var accels = map[string]struct{}{
|
var accels = map[string]struct{}{
|
||||||
"none": {},
|
"none": struct{}{},
|
||||||
"kvm": {},
|
"kvm": struct{}{},
|
||||||
"tcg": {},
|
"tcg": struct{}{},
|
||||||
"xen": {},
|
"xen": struct{}{},
|
||||||
}
|
}
|
||||||
|
|
||||||
var netDevice = map[string]bool{
|
var netDevice = map[string]bool{
|
||||||
|
|
|
@ -497,7 +497,7 @@ func TestBuilderPrepare_QemuArgs(t *testing.T) {
|
||||||
|
|
||||||
// Test with a good one
|
// Test with a good one
|
||||||
config["qemuargs"] = [][]interface{}{
|
config["qemuargs"] = [][]interface{}{
|
||||||
{"foo", "bar", "baz"},
|
[]interface{}{"foo", "bar", "baz"},
|
||||||
}
|
}
|
||||||
|
|
||||||
b = Builder{}
|
b = Builder{}
|
||||||
|
@ -510,7 +510,7 @@ func TestBuilderPrepare_QemuArgs(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
expected := [][]string{
|
expected := [][]string{
|
||||||
{"foo", "bar", "baz"},
|
[]string{"foo", "bar", "baz"},
|
||||||
}
|
}
|
||||||
|
|
||||||
if !reflect.DeepEqual(b.config.QemuArgs, expected) {
|
if !reflect.DeepEqual(b.config.QemuArgs, expected) {
|
||||||
|
|
Loading…
Reference in New Issue