3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/teeworlds: fix blocking execute calls

This commit is contained in:
Fabian Möller 2022-01-21 12:05:58 +01:00
parent 787ced6423
commit 28b3e689bf
No known key found for this signature in database
GPG key ID: 70B29D65DD8A7E31

View file

@ -36,12 +36,12 @@ in {
client1.wait_for_x()
client2.wait_for_x()
client1.execute("teeworlds 'player_name Alice;connect server'&")
client1.execute("teeworlds 'player_name Alice;connect server' >&2 &")
server.wait_until_succeeds(
'journalctl -u teeworlds -e | grep --extended-regexp -q "team_join player=\'[0-9]:Alice"'
)
client2.execute("teeworlds 'player_name Bob;connect server'&")
client2.execute("teeworlds 'player_name Bob;connect server' >&2 &")
server.wait_until_succeeds(
'journalctl -u teeworlds -e | grep --extended-regexp -q "team_join player=\'[0-9]:Bob"'
)