test: systemd: do not run as root user

This commit is contained in:
Sridhar Ratnakumar 2023-06-19 10:41:28 -04:00
parent 895426fad2
commit c6b1ea6426

View File

@ -71,6 +71,9 @@ in
testScript = testLibrary + "\n" + config.testScript;
name = "process-compose-${name}-test";
nodes.machine = {
users.users.tester = {
isNormalUser = true;
};
systemd.services."process-compose-${name}" = {
enable = true;
wantedBy = [ "default.target" ];
@ -79,6 +82,7 @@ in
ExecStart = ''
${lib.getExe config.outputs.package} -t=false
'';
User = "tester";
};
};
};