spiceqa / autotest

Autotest - Fully automated tests on Linux
http://autotest.github.com/
Other
5 stars 2 forks source link

negative qemu and spice-server testing #4

Closed lkocman closed 12 years ago

lkocman commented 12 years ago

We need to write following test:

test will succeed in case that:

qemu will exit on wrongly passed options (e..g port is already in use, or passing string except of port number, passing invalid certificate). This can be identified by VMCreateError

test fill fail in case that: qemu succeeds to create()

Problems: I'm not sure if VMCreateError will bubble so high that you'll be able to catch it in your test. So if it doesn't than you need to modify code or use different creation method so it will be catchable from within your test

lkocman commented 12 years ago

Upstream: https://github.com/autotest/autotest/issues/336

lkocman commented 12 years ago

Closing while https://github.com/autotest/autotest/pull/345 will be accepted

lkocman commented 12 years ago

Closing as it's now part of upstream