Re: [libvirt] [PATCH] virsh: fix return value error of cpu-stats

2013-08-26 Thread Pavel Hrdina
On 26.8.2013 07:11, Alex Jia wrote: On 08/23/2013 06:22 PM, Guannan Ren wrote: virsh cpu-stats guest --start 0 --count 3 It outputs right but the return value is 1 rather than 0 echo $? 1 It's ok with libvirt-0.10.2-23.el6.x86_64 on RHEL6.y, but failed with libvirt-1.1.1-2.el7.x86_64 on

Re: [libvirt] [PATCH] virsh: fix return value error of cpu-stats

2013-08-26 Thread Alex Jia
On 08/26/2013 05:11 PM, Pavel Hrdina wrote: On 26.8.2013 07:11, Alex Jia wrote: On 08/23/2013 06:22 PM, Guannan Ren wrote: virsh cpu-stats guest --start 0 --count 3 It outputs right but the return value is 1 rather than 0 echo $? 1 It's ok with libvirt-0.10.2-23.el6.x86_64 on RHEL6.y, but

Re: [libvirt] [PATCH] virsh: fix return value error of cpu-stats

2013-08-26 Thread Eric Blake
On 08/23/2013 04:22 AM, Guannan Ren wrote: virsh cpu-stats guest --start 0 --count 3 It outputs right but the return value is 1 rather than 0 echo $? 1 Found by running libvirt-autotest ./run -t libvirt --tests virsh_cpu_stats --- tools/virsh-domain.c | 10 +++--- 1 file changed, 7

[libvirt] [PATCH] virsh: fix return value error of cpu-stats

2013-08-23 Thread Guannan Ren
virsh cpu-stats guest --start 0 --count 3 It outputs right but the return value is 1 rather than 0 echo $? 1 Found by running libvirt-autotest ./run -t libvirt --tests virsh_cpu_stats --- tools/virsh-domain.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git