remove slashes to prevent windows test fails
This commit is contained in:
parent
8e632866b1
commit
3e35630d8d
|
@ -144,7 +144,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
DiskImage: true,
|
DiskImage: true,
|
||||||
DiskInterface: "virtio-scsi",
|
DiskInterface: "virtio-scsi",
|
||||||
|
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
DetectZeroes: "off",
|
DetectZeroes: "off",
|
||||||
|
@ -162,7 +162,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
"-boot", "c",
|
"-boot", "c",
|
||||||
"-device", "virtio-scsi-pci,id=scsi0",
|
"-device", "virtio-scsi-pci,id=scsi0",
|
||||||
"-device", "scsi-hd,bus=scsi0.0,drive=drive0",
|
"-device", "scsi-hd,bus=scsi0.0,drive=drive0",
|
||||||
"-drive", "if=none,file=/path/to/output,id=drive0,cache=writeback,discard=,format=qcow2",
|
"-drive", "if=none,file=path_to_output,id=drive0,cache=writeback,discard=,format=qcow2",
|
||||||
"-drive", "file=fake_cd_path.iso,index=0,media=cdrom",
|
"-drive", "file=fake_cd_path.iso,index=0,media=cdrom",
|
||||||
},
|
},
|
||||||
"virtio-scsi interface, DiskImage true, extra cdrom, detectZeroes off",
|
"virtio-scsi interface, DiskImage true, extra cdrom, detectZeroes off",
|
||||||
|
@ -172,7 +172,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
DiskImage: true,
|
DiskImage: true,
|
||||||
DiskInterface: "virtio-scsi",
|
DiskInterface: "virtio-scsi",
|
||||||
|
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
DetectZeroes: "on",
|
DetectZeroes: "on",
|
||||||
|
@ -190,7 +190,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
"-boot", "c",
|
"-boot", "c",
|
||||||
"-device", "virtio-scsi-pci,id=scsi0",
|
"-device", "virtio-scsi-pci,id=scsi0",
|
||||||
"-device", "scsi-hd,bus=scsi0.0,drive=drive0",
|
"-device", "scsi-hd,bus=scsi0.0,drive=drive0",
|
||||||
"-drive", "if=none,file=/path/to/output,id=drive0,cache=writeback,discard=,format=qcow2,detect-zeroes=on",
|
"-drive", "if=none,file=path_to_output,id=drive0,cache=writeback,discard=,format=qcow2,detect-zeroes=on",
|
||||||
"-drive", "file=fake_cd_path.iso,index=0,media=cdrom",
|
"-drive", "file=fake_cd_path.iso,index=0,media=cdrom",
|
||||||
},
|
},
|
||||||
"virtio-scsi interface, DiskImage true, extra cdrom, detectZeroes on",
|
"virtio-scsi interface, DiskImage true, extra cdrom, detectZeroes on",
|
||||||
|
@ -199,7 +199,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
&Config{
|
&Config{
|
||||||
DiskInterface: "virtio-scsi",
|
DiskInterface: "virtio-scsi",
|
||||||
|
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
DetectZeroes: "off",
|
DetectZeroes: "off",
|
||||||
|
@ -231,7 +231,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
&Config{
|
&Config{
|
||||||
DiskInterface: "virtio-scsi",
|
DiskInterface: "virtio-scsi",
|
||||||
|
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
DetectZeroes: "on",
|
DetectZeroes: "on",
|
||||||
|
@ -263,7 +263,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
&Config{
|
&Config{
|
||||||
DiskInterface: "virtio-scsi",
|
DiskInterface: "virtio-scsi",
|
||||||
|
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
},
|
},
|
||||||
|
@ -326,7 +326,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
&Config{
|
&Config{
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskInterface: "virtio",
|
DiskInterface: "virtio",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
|
@ -342,14 +342,14 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
},
|
},
|
||||||
[]string{
|
[]string{
|
||||||
"-boot", "once=d",
|
"-boot", "once=d",
|
||||||
"-drive", "file=/path/to/output,if=virtio,cache=writeback,format=qcow2",
|
"-drive", "file=path_to_output,if=virtio,cache=writeback,format=qcow2",
|
||||||
"-drive", "file=/path/to/test.iso,index=0,media=cdrom",
|
"-drive", "file=/path/to/test.iso,index=0,media=cdrom",
|
||||||
},
|
},
|
||||||
"version less than 2",
|
"version less than 2",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
&Config{
|
&Config{
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskInterface: "virtio",
|
DiskInterface: "virtio",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
|
@ -375,7 +375,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
{
|
{
|
||||||
&Config{
|
&Config{
|
||||||
DiskImage: true,
|
DiskImage: true,
|
||||||
OutputDir: "/path/to/output",
|
OutputDir: "path_to_output",
|
||||||
DiskInterface: "virtio",
|
DiskInterface: "virtio",
|
||||||
DiskCache: "writeback",
|
DiskCache: "writeback",
|
||||||
Format: "qcow2",
|
Format: "qcow2",
|
||||||
|
@ -391,7 +391,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) {
|
||||||
[]string{
|
[]string{
|
||||||
"-display", "gtk",
|
"-display", "gtk",
|
||||||
"-boot", "c",
|
"-boot", "c",
|
||||||
"-drive", "file=/path/to/output,if=virtio,cache=writeback,discard=,format=qcow2,detect-zeroes=",
|
"-drive", "file=path_to_output,if=virtio,cache=writeback,discard=,format=qcow2,detect-zeroes=",
|
||||||
"-drive", "file=fake_cd_path.iso,index=0,media=cdrom",
|
"-drive", "file=fake_cd_path.iso,index=0,media=cdrom",
|
||||||
},
|
},
|
||||||
"virtio interface with disk image",
|
"virtio interface with disk image",
|
||||||
|
|
Loading…
Reference in New Issue