diff options
Diffstat (limited to 'tests/autossh.nix')
| -rw-r--r-- | tests/autossh.nix | 16 |
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 && exec /nix/store/.*/bin/autossh ' $plist + grep '<string>/bin/wait4path /nix/store && exec.*-i /some/key ' $plist tr -d '\n\t ' <$plist |grep '<key>KeepAlive</key><true */>' ''; } |
