tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/tests/velocity: fix mcstatus command
Tert0
7 months ago
4999e434
300a80c3
+2
-2
1 changed file
expand all
collapse all
unified
split
nixos
tests
velocity.nix
+2
-2
nixos/tests/velocity.nix
···
37
(mkVelocityService "velocity-with-native" (pkgs.velocity.override { withVelocityNative = true; }))
38
];
39
40
-
environment.systemPackages = [ pkgs.mcstatus ];
41
};
42
43
testScript = ''
···
50
server.wait_until_succeeds(f"journalctl -b -u {name} | grep -q -E '{connections_startup_query}'")
51
server.wait_until_succeeds(f"journalctl -b -u {name} | grep -q 'Done ([0-9]*.[0-9]*s)!'");
52
53
-
_, status_result = server.execute("mcstatus localhost:25565 status")
54
assert "A Velocity Server" in status_result
55
56
server.execute(f"echo stop > /run/{name}.stdin")
···
37
(mkVelocityService "velocity-with-native" (pkgs.velocity.override { withVelocityNative = true; }))
38
];
39
40
+
environment.systemPackages = [ (pkgs.python3.withPackages (p: [ p.mcstatus ])) ];
41
};
42
43
testScript = ''
···
50
server.wait_until_succeeds(f"journalctl -b -u {name} | grep -q -E '{connections_startup_query}'")
51
server.wait_until_succeeds(f"journalctl -b -u {name} | grep -q 'Done ([0-9]*.[0-9]*s)!'");
52
53
+
_, status_result = server.execute("python -m mcstatus localhost:25565 status")
54
assert "A Velocity Server" in status_result
55
56
server.execute(f"echo stop > /run/{name}.stdin")