Commit 9531d26c authored by Cleber Rosa's avatar Cleber Rosa
Browse files

Acceptance tests: drop usage of "🥑 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 "🥑 enable" or "🥑
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: default avatarCleber Rosa <crosa@redhat.com>
Reviewed-by: default avatarCaio Carrara <ccarrara@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20190218173723.26120-1-crosa@redhat.com>
Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
parent 8eb29f1b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -600,7 +600,6 @@ the ``avocado_qemu.Test`` class. Here's a simple usage example:

  class Version(Test):
      """
      :avocado: enable
      :avocado: tags=quick
      """
      def test_qmp_human_info_version(self):
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ class BootLinuxConsole(Test):
    Boots a x86_64 Linux kernel and checks that the console is operational
    and the kernel command line is properly passed from QEMU to the kernel

    :avocado: enable
    :avocado: tags=x86_64
    """

+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ class LinuxInitrd(Test):
    """
    Checks QEMU evaluates correctly the initrd file passed as -initrd option.

    :avocado: enable
    :avocado: tags=x86_64
    """

+0 −1
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ from avocado_qemu import Test

class Version(Test):
    """
    :avocado: enable
    :avocado: tags=quick
    """
    def test_qmp_human_info_version(self):
+0 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ class VirtioVersionCheck(Test):
    same device tree created by `disable-modern` and
    `disable-legacy`.

    :avocado: enable
    :avocado: tags=x86_64
    """

Loading