nixosTests.sway: don't timeout gpg-agent

This commit is contained in:
Patrick Hilhorst 2023-06-21 16:08:00 +02:00
parent ae4e5957d8
commit 5bd226bfd9
No known key found for this signature in database
GPG key ID: 3BB083304DADC0FF

View file

@ -45,6 +45,10 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
regular2 = foreground;
};
};
etc."gpg-agent.conf".text = ''
pinentry-timeout 86400
'';
};
fonts.fonts = [ pkgs.inconsolata ];
@ -154,6 +158,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
# Test gpg-agent starting pinentry-gnome3 via D-Bus (tests if
# $WAYLAND_DISPLAY is correctly imported into the D-Bus user env):
swaymsg("exec mkdir -p ~/.gnupg")
swaymsg("exec cp /etc/gpg-agent.conf ~/.gnupg")
swaymsg("exec DISPLAY=INVALID gpg --no-tty --yes --quick-generate-key test", succeed=False)
machine.wait_until_succeeds("pgrep --exact gpg")
wait_for_window("gpg")