From 0f77709e0f82f88e5735a2d81b86740742fce3ef Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 22 Nov 2024 15:42:09 +0800 Subject: [PATCH] nixosTests.redlib: test settings mechanic --- nixos/tests/redlib.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/tests/redlib.nix b/nixos/tests/redlib.nix index f6806ea8ec85..c3a948c43795 100644 --- a/nixos/tests/redlib.nix +++ b/nixos/tests/redlib.nix @@ -13,6 +13,10 @@ import ./make-test-python.nix ( enable = true; # Test CAP_NET_BIND_SERVICE port = 80; + + settings = { + REDLIB_DEFAULT_USE_HLS = true; + }; }; }; @@ -21,6 +25,7 @@ import ./make-test-python.nix ( machine.wait_for_open_port(80) # Query a page that does not require Internet access machine.succeed("curl --fail http://localhost:80/settings") + machine.succeed("curl --fail http://localhost:80/info | grep 'Use HLSon'") ''; } )