From d8548a66be1239619b750faa92efb2fe7160ecea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 11 Oct 2023 22:52:13 +0300 Subject: [PATCH] syncthingtray: make test work --- tests/modules/services/syncthing/linux/tray.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/modules/services/syncthing/linux/tray.nix b/tests/modules/services/syncthing/linux/tray.nix index 934de5b84..6f4e84cff 100644 --- a/tests/modules/services/syncthing/linux/tray.nix +++ b/tests/modules/services/syncthing/linux/tray.nix @@ -21,7 +21,10 @@ with lib; nmt.script = '' assertFileExists home-files/.config/systemd/user/syncthingtray.service - assertFileContains home-files/.config/systemd/user/syncthingtray.service "ExecStart='@syncthingtray@/bin/syncthingtray' '--wait'" + # See earlier iterations of #4276: the author wasn't able to rewrite the + # nix store path to @syncthingtray@, therefore the test matches only + # a substring. + assertFileContains home-files/.config/systemd/user/syncthingtray.service "/bin/syncthingtray' '--wait'" ''; }; }