nixosTests.sway: don't timeout gpg-agent
This commit is contained in:
parent
ae4e5957d8
commit
5bd226bfd9
|
@ -45,6 +45,10 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||||
regular2 = foreground;
|
regular2 = foreground;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
etc."gpg-agent.conf".text = ''
|
||||||
|
pinentry-timeout 86400
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fonts = [ pkgs.inconsolata ];
|
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
|
# Test gpg-agent starting pinentry-gnome3 via D-Bus (tests if
|
||||||
# $WAYLAND_DISPLAY is correctly imported into the D-Bus user env):
|
# $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)
|
swaymsg("exec DISPLAY=INVALID gpg --no-tty --yes --quick-generate-key test", succeed=False)
|
||||||
machine.wait_until_succeeds("pgrep --exact gpg")
|
machine.wait_until_succeeds("pgrep --exact gpg")
|
||||||
wait_for_window("gpg")
|
wait_for_window("gpg")
|
||||||
|
|
Loading…
Reference in a new issue