diff options
author | Yarny0 <41838844+Yarny0@users.noreply.github.com> | 2022-08-18 08:42:41 +0200 |
---|---|---|
committer | Yarny0 <41838844+Yarny0@users.noreply.github.com> | 2022-08-18 16:51:21 +0200 |
commit | 64d256ab15392c3b4059422e9dfe2eec46a9fece (patch) | |
tree | 1e884ee40fd34dd2fd792d99dabebadbd05b46f3 | |
parent | 3871f8be8d6de48d5f094fbe90a09e42cc0b289c (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.
-rw-r--r-- | nixos/tests/pulseaudio.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/pulseaudio.nix b/nixos/tests/pulseaudio.nix index c0376204defe..dc8e33ccd559 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") |