From 67565c3af8982a4ccfe9d2ffbf9ca48116cc87eb Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 14 Apr 2022 15:55:33 +0300 Subject: [PATCH] tests/emacs-daemon: fix failure for unset $DISPLAY axelf4 figured[1] out a workaround for fixing a failure due to an unset $DISPLAY variable. [1] https://github.com/NixOS/nixpkgs/pull/168076#issuecomment-1098083299 --- nixos/tests/emacs-daemon.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/emacs-daemon.nix b/nixos/tests/emacs-daemon.nix index d53031a67f62..310e93e19b0b 100644 --- a/nixos/tests/emacs-daemon.nix +++ b/nixos/tests/emacs-daemon.nix @@ -33,7 +33,7 @@ import ./make-test-python.nix ({ pkgs, ...} : { ) # connects to the daemon - machine.succeed("emacsclient --create-frame $EDITOR >&2 &") + machine.succeed("emacsclient --no-wait --frame-parameters='((display . \"'\"$DISPLAY\"'\"))' --create-frame $EDITOR >&2") # checks that Emacs shows the edited filename machine.wait_for_text("emacseditor")