aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/testing/tests/conftest.py')
-rw-r--r--scripts/testing/tests/conftest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/testing/tests/conftest.py b/scripts/testing/tests/conftest.py
index c805de9..680c967 100644
--- a/scripts/testing/tests/conftest.py
+++ b/scripts/testing/tests/conftest.py
@@ -77,35 +77,35 @@ def home(target_user):
return "/home/%s" % target_user
-@pytest.fixture(scope="session")
+@pytest.fixture(scope="module")
def zfs_root(host):
"""True when the VM's root filesystem is ZFS (gates ZFS-specific checks)."""
return host.run("findmnt -n -o FSTYPE /").stdout.strip() == "zfs"
-@pytest.fixture(scope="session")
+@pytest.fixture(scope="module")
def has_nvme(host):
"""True when the VM exposes an NVMe device."""
return host.run("ls /dev/nvme0n1 2>/dev/null").rc == 0
-@pytest.fixture(scope="session")
+@pytest.fixture(scope="module")
def hyprland_installed(host):
return host.package("hyprland").is_installed
-@pytest.fixture(scope="session")
+@pytest.fixture(scope="module")
def dwm_installed(host):
return host.file("/usr/local/bin/dwm").exists
-@pytest.fixture(scope="session")
+@pytest.fixture(scope="module")
def compositor_running(host):
"""A graphical session is live (gates socket/portal checks that need one)."""
return host.run("pgrep -x Hyprland").rc == 0
-@pytest.fixture(scope="session")
+@pytest.fixture(scope="module")
def on_slirp(host):
"""QEMU user-mode networking (10.0.2.x) — no multicast, so mDNS can't work."""
return "10.0.2." in host.run("ip -4 addr show").stdout