From 133e0e44385aa540d20f7d960d2c48d4e1591f94 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Fri, 5 Jun 2026 18:43:55 +0300 Subject: [PATCH] nixos/tests/zfs: switch to runTest --- nixos/tests/all-tests.nix | 2 +- nixos/tests/zfs.nix | 17 +++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7bc42039f2a3..6c257d735d87 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1849,7 +1849,7 @@ in zammad = runTest ./zammad.nix; zenohd = runTest ./zenohd.nix; zeronet-conservancy = runTest ./zeronet-conservancy.nix; - zfs = handleTest ./zfs.nix { }; + zfs = import ./zfs.nix { inherit system pkgs runTest; }; zigbee2mqtt = runTest ./zigbee2mqtt.nix; zipline = runTest ./zipline.nix; zoneminder = runTest ./zoneminder.nix; diff --git a/nixos/tests/zfs.nix b/nixos/tests/zfs.nix index 418d7aeeda9b..9a5669b04fcb 100644 --- a/nixos/tests/zfs.nix +++ b/nixos/tests/zfs.nix @@ -1,12 +1,11 @@ { - system ? builtins.currentSystem, - config ? { }, - pkgs ? import ../.. { inherit system config; }, + system, + pkgs, + runTest, }: -with import ../lib/testing-python.nix { inherit system pkgs; }; - let + inherit (pkgs) lib; makeZfsTest = { @@ -15,11 +14,9 @@ let zfsPackage, extraTest ? "", }: - makeTest { + runTest { name = zfsPackage.kernelModuleAttribute; - meta = with pkgs.lib.maintainers; { - maintainers = [ elvishjerricco ]; - }; + meta.maintainers = with lib.maintainers; [ elvishjerricco ]; nodes.machine = { @@ -250,7 +247,7 @@ in systemdStage1 = true; }).zfsroot; - expand-partitions = makeTest { + expand-partitions = runTest { name = "multi-disk-zfs"; nodes = { machine =