diff options
author | Robert Helgesson <robert@rycee.net> | 2020-04-24 21:41:22 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-04-24 21:46:34 +0200 |
commit | 95b95b14075aca3eea5a747aad2e24606f2f0fea (patch) | |
tree | e0e25f8328511aa63bff1fd8e4e268c59f478094 /tests/modules/programs/bash | |
parent | cfaf2139801aef64add340db037c64eaacfae670 (diff) |
tests: improve test purity
Before the XDG variables would be set from the user's environment, if
available. This would break some tests.
With this change the tests should be fully deterministic.
Fixes #1190
Diffstat (limited to 'tests/modules/programs/bash')
-rw-r--r-- | tests/modules/programs/bash/session-variables-expected.txt | 2 | ||||
-rw-r--r-- | tests/modules/programs/bash/session-variables.nix | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tests/modules/programs/bash/session-variables-expected.txt b/tests/modules/programs/bash/session-variables-expected.txt index e13d63d4c78..0d93217a915 100644 --- a/tests/modules/programs/bash/session-variables-expected.txt +++ b/tests/modules/programs/bash/session-variables-expected.txt @@ -1,6 +1,6 @@ # -*- mode: sh -*- -. "/home/testuser/.nix-profile/etc/profile.d/hm-session-vars.sh" +. "/home/hm-user/.nix-profile/etc/profile.d/hm-session-vars.sh" export V1="v1" export V2="v2-v1" diff --git a/tests/modules/programs/bash/session-variables.nix b/tests/modules/programs/bash/session-variables.nix index ea789a1d061..1ef65a34442 100644 --- a/tests/modules/programs/bash/session-variables.nix +++ b/tests/modules/programs/bash/session-variables.nix @@ -13,8 +13,6 @@ with lib; }; }; - home.homeDirectory = "/home/testuser"; - nmt.script = '' assertFileExists home-files/.profile assertFileContent \ |