Gu Yanhua (3): Modify the virsh_cmd function by adding a param ignore_status with False default and returning cmd_result dirctly. Accordingly changing the virsh_cmd callers' return value. Add virsh_nodeinfo function in libvirt_vm.py. Add virsh_nodeinfo.py to test virsh_nodeinfo command. Add configuration for "virsh nodeinfo".
Ps:In virsh_nodeinfo function, by adding ignore_status and extra params to satisfy both getting information of this command and testing this command. Therefore, similar functions such as virsh_uri(), virsh_hostname()... can be modified like this, but their callers with return value should be modified accordinfly. client/tests/libvirt/tests/virsh_nodeinfo.py | 110 ++++++++++++++++++++++++++ client/virt/libvirt_vm.py | 29 ++++--- client/virt/subtests.cfg.sample | 17 ++++ 3 files changed, 145 insertions(+), 11 deletions(-) create mode 100644 client/tests/libvirt/tests/virsh_nodeinfo.py _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest