Skip to content

Commit 0017e49

Browse files
committed
test_guest_tools_unix: use a fixture instead of expecting test_install
Same as for test_basic_without_ssh, and this allows to stop using @pytest.mark.incremental here too. Signed-off-by: Yann Dirson <[email protected]>
1 parent d06c557 commit 0017e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/guest-tools/unix/test_guest_tools_unix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def __init__(self):
1616
self.tools_version = None
1717
self.vm_distro = None
1818

19-
@pytest.mark.incremental # tests depend on each other. If one test fails, don't execute the others
2019
@pytest.mark.multi_vms
2120
@pytest.mark.usefixtures("unix_vm")
2221
class TestGuestToolsUnix:
@@ -34,7 +33,8 @@ def _check_os_info(self, vm, vm_distro):
3433
detected_distro = vm.distro()
3534
assert detected_distro == vm_distro
3635

37-
def test_install(self, running_vm, state):
36+
@pytest.fixture(scope="class", autouse=True)
37+
def vm_install(self, running_vm, state):
3838
vm = running_vm
3939

4040
# skip test for some unixes

0 commit comments

Comments
 (0)