[virt-tools-list] [PATCH virt-manager 12/14] tests: cli: Add test case for --no-define argument

Marc Hartmayer mhartmay at linux.ibm.com
Tue Feb 26 09:56:42 UTC 2019

Add a test case validating mutual exclusivity of `--no-define` and
'--define' arguments.

Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
 tests/clitest.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/clitest.py b/tests/clitest.py
index b3a0ed77ba97..9670f2228bd5 100644
--- a/tests/clitest.py
+++ b/tests/clitest.py
@@ -903,6 +903,7 @@ c.add_invalid("test-for-virtxml --add-device --host-device 0x04b3:0x4485 --updat
 c.add_invalid("test-for-virtxml --remove-device --host-device 1 --update")  # test driver doesn't support detachdevice...
 c.add_invalid("test-for-virtxml --edit --graphics password=foo --update")  # test driver doesn't support updatdevice...
 c.add_invalid("--build-xml --memory 10,maxmemory=20")  # building XML for option that doesn't support it
+c.add_invalid("test --edit --boot network,cdrom --define --no-define")
 c.add_compare("test --print-xml --edit --vcpus 7", "print-xml")  # test --print-xml
 c.add_compare("--edit --cpu host-passthrough", "stdin-edit", input_file=(XMLDIR + "/virtxml-stdin-edit.xml"))  # stdin test
 c.add_compare("--build-xml --cpu pentium3,+x2apic", "build-cpu")

More information about the virt-tools-list mailing list