about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2024-05-27 19:44:49 +0200
committerFrancesco Gazzetta <fgaz@fgaz.me>2024-05-30 07:28:44 +0000
commitce3303220aa5bd66c09da2f56c019fb53da54c50 (patch)
treeb68df39cc7aed360ffac4967b392319d46c57e4a /nixos
parent0f988883a3640b7419bb85d8c2678db6983418d0 (diff)
domination: 1.2.9 -> 1.3.0
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/domination.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/domination.nix b/nixos/tests/domination.nix
index 409a7f3029c42..9e4badd2e369d 100644
--- a/nixos/tests/domination.nix
+++ b/nixos/tests/domination.nix
@@ -10,6 +10,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
     ];
 
     services.xserver.enable = true;
+    sound.enable = true;
     environment.systemPackages = [ pkgs.domination ];
   };
 
@@ -18,6 +19,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
   testScript =
     ''
       machine.wait_for_x()
+      # Add a dummy sound card, or an error reporting popup will appear,
+      # covering the main window and preventing OCR
+      machine.execute("modprobe snd-dummy")
       machine.execute("domination >&2 &")
       machine.wait_for_window("Menu")
       machine.wait_for_text(r"(New Game|Start Server|Load Game|Help Manual|Join Game|About|Play Online)")