lol

nixos/tests/apfs: clean up code

- Use `runTest` instead of `handleTest`, which simplifies the code a little
- Use `lib.maintainers` instead of `pkgs.lib.maintainers`
- Remove unused function argument `pkgs`
- Change test name in the kernel module from `test` to `apfs`, since that seems to be a common pattern for the name

Luflosi 7573c269 a2c62404

+6 -6
+1 -1
nixos/tests/all-tests.nix
··· 108 108 alps = handleTest ./alps.nix {}; 109 109 amazon-init-shell = handleTest ./amazon-init-shell.nix {}; 110 110 apcupsd = handleTest ./apcupsd.nix {}; 111 - apfs = handleTest ./apfs.nix {}; 111 + apfs = runTest ./apfs.nix; 112 112 apparmor = handleTest ./apparmor.nix {}; 113 113 atd = handleTest ./atd.nix {}; 114 114 atop = handleTest ./atop.nix {};
+4 -4
nixos/tests/apfs.nix
··· 1 - import ./make-test-python.nix ({ pkgs, ... }: { 1 + { lib, ... }: { 2 2 name = "apfs"; 3 - meta.maintainers = with pkgs.lib.maintainers; [ Luflosi ]; 3 + meta.maintainers = with lib.maintainers; [ Luflosi ]; 4 4 5 - nodes.machine = { pkgs, ... }: { 5 + nodes.machine = { 6 6 virtualisation.emptyDiskImages = [ 1024 ]; 7 7 8 8 boot.supportedFilesystems = [ "apfs" ]; ··· 62 62 "apfsck /dev/vdb", 63 63 ) 64 64 ''; 65 - }) 65 + }
+1 -1
pkgs/os-specific/linux/apfs/default.nix
··· 28 28 "INSTALL_MOD_PATH=$(out)" 29 29 ]; 30 30 31 - passthru.tests.test = nixosTests.apfs; 31 + passthru.tests.apfs = nixosTests.apfs; 32 32 33 33 meta = with lib; { 34 34 description = "APFS module for linux";