summaryrefslogtreecommitdiffstats
path: root/nixos/tests/bazarr.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2022-10-17 12:46:39 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-11-04 14:10:31 +0100
commit166c9c8269735d5bf3e49629f804bd7b995987f0 (patch)
tree6c233bbcf99866fe7c8200bdaf1fc25bfa38f297 /nixos/tests/bazarr.nix
parent92fe5610ff59ca0b4ca585ce8446cba6de313b13 (diff)
nixos/tests/bazarr: fix eval error
The test still doesn't pass, it has some runtime issues as well. Fixes: 580370666239 ("nixos/tests: fix type mismatch in wait_for_open_port")
Diffstat (limited to 'nixos/tests/bazarr.nix')
-rw-r--r--nixos/tests/bazarr.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/bazarr.nix b/nixos/tests/bazarr.nix
index efcd9de01080..2e49c958dd00 100644
--- a/nixos/tests/bazarr.nix
+++ b/nixos/tests/bazarr.nix
@@ -16,11 +16,12 @@ in
enable = true;
listenPort = port;
};
+ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["unrar"];
};
testScript = ''
machine.wait_for_unit("bazarr.service")
- machine.wait_for_open_port(port)
+ machine.wait_for_open_port(${toString port})
machine.succeed("curl --fail http://localhost:${toString port}/")
'';
})