summaryrefslogtreecommitdiff
path: root/tests/autossh.nix
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /tests/autossh.nix
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'tests/autossh.nix')
-rw-r--r--tests/autossh.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/autossh.nix b/tests/autossh.nix
index d1aacd0..5279bf9 100644
--- a/tests/autossh.nix
+++ b/tests/autossh.nix
@@ -1,17 +1,19 @@
{ config, pkgs, ... }:
{
- services.autossh.sessions = [ {
- name = "foo";
- user = "jfelice";
- extraArguments = "-i /some/key -T -N bar.eraserhead.net";
- } ];
+ services.autossh.sessions = [
+ {
+ name = "foo";
+ user = "jfelice";
+ extraArguments = "-i /some/key -T -N bar.eraserhead.net";
+ }
+ ];
test = ''
plist=${config.out}/Library/LaunchDaemons/org.nixos.autossh-foo.plist
test -f $plist
- grep '<string>exec /nix/store/.*/bin/autossh ' $plist
- grep '<string>exec.*-i /some/key ' $plist
+ grep '<string>/bin/wait4path /nix/store &amp;&amp; exec /nix/store/.*/bin/autossh ' $plist
+ grep '<string>/bin/wait4path /nix/store &amp;&amp; exec.*-i /some/key ' $plist
tr -d '\n\t ' <$plist |grep '<key>KeepAlive</key><true */>'
'';
}