From 4999e4345a2707d93e6ac2f69055b5cb9a2e5cc3 Mon Sep 17 00:00:00 2001 From: Tert0 Date: Mon, 23 Jun 2025 09:33:03 +0200 Subject: [PATCH] nixos/tests/velocity: fix mcstatus command --- nixos/tests/velocity.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/velocity.nix b/nixos/tests/velocity.nix index d9ae4e75d87e..d448e5fa7255 100644 --- a/nixos/tests/velocity.nix +++ b/nixos/tests/velocity.nix @@ -37,7 +37,7 @@ (mkVelocityService "velocity-with-native" (pkgs.velocity.override { withVelocityNative = true; })) ]; - environment.systemPackages = [ pkgs.mcstatus ]; + environment.systemPackages = [ (pkgs.python3.withPackages (p: [ p.mcstatus ])) ]; }; testScript = '' @@ -50,7 +50,7 @@ server.wait_until_succeeds(f"journalctl -b -u {name} | grep -q -E '{connections_startup_query}'") server.wait_until_succeeds(f"journalctl -b -u {name} | grep -q 'Done ([0-9]*.[0-9]*s)!'"); - _, status_result = server.execute("mcstatus localhost:25565 status") + _, status_result = server.execute("python -m mcstatus localhost:25565 status") assert "A Velocity Server" in status_result server.execute(f"echo stop > /run/{name}.stdin")