diff --git a/tools/dashboard-deploy-test.py b/tools/dashboard-deploy-test.py index 26fa40a48b7717868c1f90e3afd2302faddc3937..c6f8f1aa3515e02ddd68c6e938a26c887c26cf1a 100644 --- a/tools/dashboard-deploy-test.py +++ b/tools/dashboard-deploy-test.py @@ -179,7 +179,8 @@ class DeploymentBoundary(unittest.TestCase): def execute(argv, **kwargs): if argv[:2] == ["nixos-rebuild", "switch"]: self.assertEqual((self.root / "current").resolve(), self.snapshot) - return subprocess.CompletedProcess(argv, 0, stdout='"leader"', stderr="") + output = 'job "fixture" {\n' if argv[-1] == "render" else '"leader"' + return subprocess.CompletedProcess(argv, 0, stdout=output, stderr="") with patch.object(release.subprocess, "run", side_effect=execute): self.assertIsNone(release.activate(self.version, initial=True))