diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7d8af87cd9eb..cb8ca2775cae 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -203,7 +203,7 @@ in { }; ayatana-indicators = runTest ./ayatana-indicators.nix; babeld = runTest ./babeld.nix; - bazarr = handleTest ./bazarr.nix {}; + bazarr = runTest ./bazarr.nix; bcachefs = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bcachefs.nix {}; beanstalkd = handleTest ./beanstalkd.nix {}; bees = handleTest ./bees.nix {}; diff --git a/nixos/tests/bazarr.nix b/nixos/tests/bazarr.nix index b19b0ec00ddf..48206ce6e2f4 100644 --- a/nixos/tests/bazarr.nix +++ b/nixos/tests/bazarr.nix @@ -1,26 +1,24 @@ -import ./make-test-python.nix ( - { lib, ... }: +{ lib, ... }: - let - port = 42069; - in - { - name = "bazarr"; - meta.maintainers = with lib.maintainers; [ d-xo ]; +let + port = 42069; +in +{ + name = "bazarr"; + meta.maintainers = with lib.maintainers; [ d-xo ]; - nodes.machine = - { pkgs, ... }: - { - services.bazarr = { - enable = true; - listenPort = port; - }; + nodes.machine = + { pkgs, ... }: + { + services.bazarr = { + enable = true; + listenPort = port; }; + }; - testScript = '' - machine.wait_for_unit("bazarr.service") - machine.wait_for_open_port(${toString port}) - machine.succeed("curl --fail http://localhost:${toString port}/") - ''; - } -) + testScript = '' + machine.wait_for_unit("bazarr.service") + machine.wait_for_open_port(${toString port}) + machine.succeed("curl --fail http://localhost:${toString port}/") + ''; +}