about summary refs log tree commit diff
path: root/nixos/tests/pulseaudio.nix
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2022-08-18 08:42:41 +0200
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2022-08-18 16:51:21 +0200
commit64d256ab15392c3b4059422e9dfe2eec46a9fece (patch)
tree1e884ee40fd34dd2fd792d99dabebadbd05b46f3 /nixos/tests/pulseaudio.nix
parent3871f8be8d6de48d5f094fbe90a09e42cc0b289c (diff)
nixos/tests/pulseaudio: add test for pacmd
Note that `pacmd` only connects to user session daemons,
so we have to skip it in system wide mode.
Diffstat (limited to 'nixos/tests/pulseaudio.nix')
-rw-r--r--nixos/tests/pulseaudio.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/pulseaudio.nix b/nixos/tests/pulseaudio.nix
index c0376204defee..dc8e33ccd559c 100644
--- a/nixos/tests/pulseaudio.nix
+++ b/nixos/tests/pulseaudio.nix
@@ -60,6 +60,11 @@ let
           ''}
           machine.screenshot("testPlay")
 
+          ${lib.optionalString (!systemWide) ''
+            machine.send_chars("pacmd info && touch /tmp/pacmd_success\n")
+            machine.wait_for_file("/tmp/pacmd_success")
+          ''}
+
           # Pavucontrol only loads when Pulseaudio is running. If it isn't, the
           # text "Dummy Output" (sound device name) will never show.
           machine.send_chars("pavucontrol\n")