diff options
author | ajs124 <ajs124@users.noreply.github.com> | 2022-03-31 01:35:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 01:35:09 +0200 |
commit | 35619ce1e513fa044b341f62a633deaa458eed06 (patch) | |
tree | b7a5a3d2f52cc5bc71788bb33d997cacb6ffa6cb /nixos/tests | |
parent | 2035fe0ec8f5dcb5e8c2e69798c15bf7b14d6dbd (diff) | |
parent | a3e0698bf6fd676d96b89bdb4cd54c73ea502746 (diff) |
Merge pull request #165453 from helsinki-systems/feat/systemd-manager-environment
nixos/systemd: Switch to ManagerEnvironment=
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/systemd.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/systemd.nix b/nixos/tests/systemd.nix index f86daa5eea974..94805ee5781a1 100644 --- a/nixos/tests/systemd.nix +++ b/nixos/tests/systemd.nix @@ -192,5 +192,9 @@ import ./make-test-python.nix ({ pkgs, ... }: { with subtest("systemd per-unit accounting works"): assert "IP traffic received: 84B" in output_ping assert "IP traffic sent: 84B" in output_ping + + with subtest("systemd environment is properly set"): + machine.systemctl("daemon-reexec") # Rewrites /proc/1/environ + machine.succeed("grep -q TZDIR=/etc/zoneinfo /proc/1/environ") ''; }) |