1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

tests: integration tests only run on linux

Using dependencies that require linux.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-07-26 20:40:37 -05:00
parent 9fa2ad30c5
commit 7a02711a61
2 changed files with 6 additions and 3 deletions

View file

@ -34,7 +34,10 @@
integrationTestPackages = integrationTestPackages =
let let
tests = import ./integration { inherit pkgs; }; tests = import ./integration {
inherit pkgs;
inherit (pkgs) lib;
};
renameTestPkg = n: lib.nameValuePair "integration-test-${n}"; renameTestPkg = n: lib.nameValuePair "integration-test-${n}";
in in
lib.mapAttrs' renameTestPkg tests; lib.mapAttrs' renameTestPkg tests;

View file

@ -1,4 +1,4 @@
{ pkgs }: { lib, pkgs }:
let let
nixosLib = import "${pkgs.path}/nixos/lib" { }; nixosLib = import "${pkgs.path}/nixos/lib" { };
@ -13,7 +13,7 @@ let
hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs
}; };
tests = { tests = lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
home-with-symbols = runTest ./standalone/home-with-symbols.nix; home-with-symbols = runTest ./standalone/home-with-symbols.nix;
kitty = runTest ./standalone/kitty.nix; kitty = runTest ./standalone/kitty.nix;
mu = runTest ./standalone/mu; mu = runTest ./standalone/mu;