[PATCH 0/3] Fix the build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As exposed by [1], qemuxml2argvtest fails because of it tries to
access non-existing sysfs files when building qemu command for
scsi-generic device.

This creates "tests/sysfsroot", uses it as the fake sysfs root,
any future sysfs test input files should be put into it.

[1] https://www.redhat.com/archives/libvir-list/2013-May/msg00923.html

Osier Yang (3):
  qemu: Allow to specify the sysfs root for qemuBuildCommandLine
  tests: Feed the fake sysfs root to qemuBuildCommandLine
  tests: Move fchostdata into sysfsroot

 src/qemu/qemu_cgroup.c                             |  3 +-
 src/qemu/qemu_command.c                            | 12 +++--
 src/qemu/qemu_command.h                            |  6 ++-
 src/qemu/qemu_driver.c                             |  3 +-
 src/qemu/qemu_hostdev.c                            |  9 ++--
 src/qemu/qemu_hotplug.c                            |  4 +-
 src/qemu/qemu_process.c                            |  3 +-
 src/security/security_dac.c                        |  6 ++-
 src/security/security_selinux.c                    |  6 ++-
 src/util/virscsi.c                                 | 51 ++++++++++++++++++----
 src/util/virscsi.h                                 |  6 ++-
 tests/Makefile.am                                  |  2 +-
 tests/fchostdata/fc_host/host4/fabric_name         |  1 -
 tests/fchostdata/fc_host/host4/max_npiv_vports     |  1 -
 tests/fchostdata/fc_host/host4/node_name           |  1 -
 tests/fchostdata/fc_host/host4/npiv_vports_inuse   |  1 -
 tests/fchostdata/fc_host/host4/port_name           |  1 -
 tests/fchostdata/fc_host/host4/port_state          |  1 -
 tests/fchostdata/fc_host/host4/vport_create        |  0
 tests/fchostdata/fc_host/host4/vport_delete        |  0
 tests/fchostdata/fc_host/host5/fabric_name         |  1 -
 tests/fchostdata/fc_host/host5/max_npiv_vports     |  1 -
 tests/fchostdata/fc_host/host5/node_name           |  1 -
 tests/fchostdata/fc_host/host5/npiv_vports_inuse   |  1 -
 tests/fchostdata/fc_host/host5/port_name           |  1 -
 tests/fchostdata/fc_host/host5/port_state          |  1 -
 tests/fchostdata/fc_host/host5/vport_create        |  0
 tests/fchostdata/fc_host/host5/vport_delete        |  0
 tests/fchosttest.c                                 |  2 +-
 tests/qemuxml2argvtest.c                           |  5 ++-
 tests/qemuxmlnstest.c                              |  3 +-
 .../bus/scsi/devices/0:0:0:0/scsi_generic/sg0/dev  |  1 +
 tests/sysfsroot/class/fc_host/host4/fabric_name    |  1 +
 .../sysfsroot/class/fc_host/host4/max_npiv_vports  |  1 +
 tests/sysfsroot/class/fc_host/host4/node_name      |  1 +
 .../class/fc_host/host4/npiv_vports_inuse          |  1 +
 tests/sysfsroot/class/fc_host/host4/port_name      |  1 +
 tests/sysfsroot/class/fc_host/host4/port_state     |  1 +
 tests/sysfsroot/class/fc_host/host4/vport_create   |  0
 tests/sysfsroot/class/fc_host/host4/vport_delete   |  0
 tests/sysfsroot/class/fc_host/host5/fabric_name    |  1 +
 .../sysfsroot/class/fc_host/host5/max_npiv_vports  |  1 +
 tests/sysfsroot/class/fc_host/host5/node_name      |  1 +
 .../class/fc_host/host5/npiv_vports_inuse          |  1 +
 tests/sysfsroot/class/fc_host/host5/port_name      |  1 +
 tests/sysfsroot/class/fc_host/host5/port_state     |  1 +
 tests/sysfsroot/class/fc_host/host5/vport_create   |  0
 tests/sysfsroot/class/fc_host/host5/vport_delete   |  0
 48 files changed, 101 insertions(+), 45 deletions(-)
 delete mode 100644 tests/fchostdata/fc_host/host4/fabric_name
 delete mode 100644 tests/fchostdata/fc_host/host4/max_npiv_vports
 delete mode 100644 tests/fchostdata/fc_host/host4/node_name
 delete mode 100644 tests/fchostdata/fc_host/host4/npiv_vports_inuse
 delete mode 100644 tests/fchostdata/fc_host/host4/port_name
 delete mode 100644 tests/fchostdata/fc_host/host4/port_state
 delete mode 100644 tests/fchostdata/fc_host/host4/vport_create
 delete mode 100644 tests/fchostdata/fc_host/host4/vport_delete
 delete mode 100644 tests/fchostdata/fc_host/host5/fabric_name
 delete mode 100644 tests/fchostdata/fc_host/host5/max_npiv_vports
 delete mode 100644 tests/fchostdata/fc_host/host5/node_name
 delete mode 100644 tests/fchostdata/fc_host/host5/npiv_vports_inuse
 delete mode 100644 tests/fchostdata/fc_host/host5/port_name
 delete mode 100644 tests/fchostdata/fc_host/host5/port_state
 delete mode 100644 tests/fchostdata/fc_host/host5/vport_create
 delete mode 100644 tests/fchostdata/fc_host/host5/vport_delete
 create mode 100644 tests/sysfsroot/bus/scsi/devices/0:0:0:0/scsi_generic/sg0/dev
 create mode 100644 tests/sysfsroot/class/fc_host/host4/fabric_name
 create mode 100644 tests/sysfsroot/class/fc_host/host4/max_npiv_vports
 create mode 100644 tests/sysfsroot/class/fc_host/host4/node_name
 create mode 100644 tests/sysfsroot/class/fc_host/host4/npiv_vports_inuse
 create mode 100644 tests/sysfsroot/class/fc_host/host4/port_name
 create mode 100644 tests/sysfsroot/class/fc_host/host4/port_state
 create mode 100644 tests/sysfsroot/class/fc_host/host4/vport_create
 create mode 100644 tests/sysfsroot/class/fc_host/host4/vport_delete
 create mode 100644 tests/sysfsroot/class/fc_host/host5/fabric_name
 create mode 100644 tests/sysfsroot/class/fc_host/host5/max_npiv_vports
 create mode 100644 tests/sysfsroot/class/fc_host/host5/node_name
 create mode 100644 tests/sysfsroot/class/fc_host/host5/npiv_vports_inuse
 create mode 100644 tests/sysfsroot/class/fc_host/host5/port_name
 create mode 100644 tests/sysfsroot/class/fc_host/host5/port_state
 create mode 100644 tests/sysfsroot/class/fc_host/host5/vport_create
 create mode 100644 tests/sysfsroot/class/fc_host/host5/vport_delete

-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]