test: systemd: report if pc exits abrutly

This commit is contained in:
Sridhar Ratnakumar 2023-06-19 10:41:52 -04:00
parent c6b1ea6426
commit 2bb8536757

View File

@ -79,10 +79,16 @@ in
wantedBy = [ "default.target" ];
serviceConfig = {
WorkingDirectory = "/tmp";
ExecStart = ''
${lib.getExe config.outputs.package} -t=false
'';
User = "tester";
ExecStart = lib.getExe (pkgs.writeShellApplication {
name = "process-compose-${name}";
text = ''
set -x
${lib.getExe config.outputs.package} -t=false
echo "unexpected: process-compose exited successfully (all processes are completed?)"
exit 2
'';
});
};
};
};