about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorajs124 <ajs124@users.noreply.github.com>2022-03-31 01:35:09 +0200
committerGitHub <noreply@github.com>2022-03-31 01:35:09 +0200
commit35619ce1e513fa044b341f62a633deaa458eed06 (patch)
treeb7a5a3d2f52cc5bc71788bb33d997cacb6ffa6cb /nixos/tests
parent2035fe0ec8f5dcb5e8c2e69798c15bf7b14d6dbd (diff)
parenta3e0698bf6fd676d96b89bdb4cd54c73ea502746 (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.nix4
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")
   '';
 })