Hi,

Regarding the first question:
In the repo avocado-vt, file etc/avocado/conf.d/pkvm.conf:
# Keep guest running between tests (faster, but unsafe)
keep_guest_running = False

This makes the VM shutdown between every test. Set to True to keep it running. Also make sure your tests .cfg files don't have kill_vm_before_test or kill_vm set to "yes" (default is "no"). You could use those parameters to shutdown after a specific test.


Regards,
Olav P. Henschel

On 04-02-2016 10:49, Andrei Stepanov wrote:
Hello.

I want somehow specify that avocado-vt test should keep running no matter what test's result is. Is it possible?

Currently, _any_ uncaught exception is a result to immediately shutdown VMs.

I want specify:

1) in some_test.py that it is FAIL
2) provide cartesian key that VM's should keep running.

Using: --vt-extra-params 'kill_vm_timeout = 30000' 'kill_vm = no' doesn't help me.


Another question.


I want run examples from: https://github.com/avocado-framework/avocado-vt/blob/master/examples/tests/template.py#L2

The comment suggests:

# Put this file into $test_provider/tests directory and use
# $ avocado run template --vt-type qemu to execute it.

I tried to copy this files (avocado-vt/examples/tests/*.py) to:

avocado-data/avocado-vt/backends/qemu/tests/
or
avocado-data/avocado-vt/test-providers.d/downloads/io-github-autotest-qemu/provider/
or
avocado-data/avocado-vt/test-providers.d/downloads/io-github-autotest-qemu/qemu/tests

Result is always the same:
Unable to discover url(s) 'template' with loader plugins(s) 'file', 'vt', 'external', try running 'avocado list -V template' to see the details.



_______________________________________________
Avocado-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/avocado-devel

_______________________________________________
Avocado-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/avocado-devel

Reply via email to