summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorGeorg Haas <hax404foogit@hax404.de>2022-11-20 00:35:59 +0100
committerGeorg Haas <hax404foogit@hax404.de>2022-11-20 00:35:59 +0100
commitf20402f8e3d8bd4c9ccf3c36718c9922d5c4d82d (patch)
tree63aeb71380342115a944d4fe87a29525c9f73fed /nixos
parent45d091f71e2e65504d7961dd88d57c9a97414a9d (diff)
nixos/tests/deluge: fix test
deluge-console always exits with code 1. This is known in https://dev.deluge-torrent.org/ticket/3291
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/deluge.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/deluge.nix b/nixos/tests/deluge.nix
index 0cd1d21870adf..e8945fdea003a 100644
--- a/nixos/tests/deluge.nix
+++ b/nixos/tests/deluge.nix
@@ -54,8 +54,10 @@ import ./make-test-python.nix ({ pkgs, ...} : {
     declarative.wait_for_unit("deluged")
     declarative.wait_for_unit("delugeweb")
     declarative.wait_until_succeeds("curl --fail http://declarative:3142")
+
+    # deluge-console always exits with 1. https://dev.deluge-torrent.org/ticket/3291
     declarative.succeed(
-        "deluge-console 'connect 127.0.0.1:58846 andrew password; help' | grep -q 'rm.*Remove a torrent'"
+        "(deluge-console 'connect 127.0.0.1:58846 andrew password; help' || true) | grep -q 'rm.*Remove a torrent'"
     )
   '';
 })