mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
home-manager: fix integration tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
@@ -11,7 +13,7 @@
|
||||
# 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
|
||||
# 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
|
||||
# environment.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
@@ -11,7 +13,7 @@
|
||||
# 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
|
||||
# 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
|
||||
# environment.
|
||||
|
||||
@@ -80,8 +80,11 @@ in
|
||||
"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'")
|
||||
expected = "Starting Home Manager activation"
|
||||
expected = "home-manager-generation.drv"
|
||||
assert expected in actual, \
|
||||
f"expected nh home switch to contain {expected}, but got {actual}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user