]> xenbits.xensource.com Git - qemu-xen.git/commit
Acceptance tests: drop usage of ":avocado: enable"
authorCleber Rosa <crosa@redhat.com>
Mon, 18 Feb 2019 17:37:23 +0000 (12:37 -0500)
committerCleber Rosa <crosa@redhat.com>
Fri, 22 Feb 2019 19:07:01 +0000 (14:07 -0500)
commit9531d26c10613348b53e1846566380be4f15b23c
tree684a5b09eb425d5fdf05483da0583d6c74956b9d
parent8eb29f1bf5a974dc4c11d2d1f5e7c7f7a62be116
Acceptance tests: drop usage of ":avocado: enable"

The Avocado test runner attemps to find its INSTRUMENTED (that is,
Python based tests) in a manner that is as safe as possible to the
user.  Different from plain Python unittest, it won't load or
execute test code on an operation such as:

 $ avocado list tests/acceptance/

Before version 68.0, the logic implemented to identify INSTRUMENTED
tests would require either the ":avocado: enable" or ":avocado:
recursive" statement as a flag for tests that would not inherit
directly from "avocado.Test".  This is not necessary anymore,
and because of that the boiler plate statements can now be removed.

Reference: https://avocado-framework.readthedocs.io/en/68.0/release_notes/68_0.html#users-test-writers
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Caio Carrara <ccarrara@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20190218173723.26120-1-crosa@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
docs/devel/testing.rst
tests/acceptance/boot_linux_console.py
tests/acceptance/linux_initrd.py
tests/acceptance/version.py
tests/acceptance/virtio_version.py
tests/acceptance/vnc.py
tests/requirements.txt