From eb880051300257cc1e465cbb8042d6e65caf67d6 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Tue, 13 Nov 2018 17:06:03 +0100 Subject: [PATCH] nixos/systemd: Add a regression test for #50273 --- nixos/tests/systemd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/tests/systemd.nix b/nixos/tests/systemd.nix index 65aa553b314..4d470126abe 100644 --- a/nixos/tests/systemd.nix +++ b/nixos/tests/systemd.nix @@ -56,6 +56,11 @@ import ./make-test.nix { $machine->succeed('test -z $(ls -1 /var/log/journal)'); }; + # Regression test for https://github.com/NixOS/nixpkgs/issues/50273 + subtest "DynamicUser actually allocates a user", sub { + $machine->succeed('systemd-run --pty --property=Type=oneshot --property=DynamicUser=yes --property=User=iamatest whoami | grep iamatest'); + }; + # Regression test for https://github.com/NixOS/nixpkgs/issues/35268 subtest "file system with x-initrd.mount is not unmounted", sub { $machine->shutdown;