]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: schedinfo --set invalid=value would simply ignore the option
authorJim Meyering <meyering@redhat.com>
Tue, 11 May 2010 13:38:21 +0000 (15:38 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 11 May 2010 14:37:15 +0000 (16:37 +0200)
commit9a641564fbfc6dedf2bd9b9afdc3e3bc198fb4b7
tree8907d51623932bb9634f1c68c778f0709fd16738
parent5603515127ff14b70bd6a24db1485043a6b817a7
virsh: schedinfo --set invalid=value would simply ignore the option

For example, virsh -c test:///default schedinfo 1 --set P=k would
mistakenly exit successfully, giving no indication that it had failed
to set the scheduling parameter "P".
* tools/virsh.c (cmdSchedinfo): Diagnose an invalid --set j=k option,
rather than silently ignoring it.
* tests/virsh-schedinfo: New test for the above.
* tests/Makefile.am (test_scripts): Add it.
Reported by Jintao Yang in http://bugzilla.redhat.com/586632
tests/Makefile.am
tests/virsh-schedinfo [new file with mode: 0755]
tools/virsh.c