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

home-manager: fix integration tests

This commit is contained in:
Robert Helgesson 2025-06-09 13:55:23 +02:00
parent 2835e8ba0a
commit eee140958a
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,5 @@
{ config, pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
@ -11,7 +13,7 @@
# You should not change this value, even if you update Home Manager. If you do # You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager # want to update the value, then make sure to first check the Home Manager
# release notes. # release notes.
home.stateVersion = "24.11"; # Please read the comment before changing. home.stateVersion = "25.05"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.

View file

@ -1,3 +1,5 @@
{ config, pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
@ -11,7 +13,7 @@
# You should not change this value, even if you update Home Manager. If you do # You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager # want to update the value, then make sure to first check the Home Manager
# release notes. # release notes.
home.stateVersion = "24.11"; # Please read the comment before changing. home.stateVersion = "25.05"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.

View file

@ -80,8 +80,11 @@ in
"cp -v ${./alice-home-next.nix} ${home}/.config/home-manager/home.nix" "cp -v ${./alice-home-next.nix} ${home}/.config/home-manager/home.nix"
])) ]))
# The default configuration creates this link on activation.
machine.fail("test -L '${home}/.cache/.keep'")
actual = succeed_as_alice("nh home switch --no-nom '${home}/.config/home-manager'") actual = succeed_as_alice("nh home switch --no-nom '${home}/.config/home-manager'")
expected = "Starting Home Manager activation" expected = "home-manager-generation.drv"
assert expected in actual, \ assert expected in actual, \
f"expected nh home switch to contain {expected}, but got {actual}" f"expected nh home switch to contain {expected}, but got {actual}"