Try to fix CI stability

This commit is contained in:
ChillerDragon 2024-01-24 17:44:09 +08:00
parent 96a29c9429
commit 0fd41d928f

View file

@ -152,9 +152,9 @@ fail() {
tail "$logdir/server.txt" tail "$logdir/server.txt"
else else
echo "[-] end of ruby server log:" echo "[-] end of ruby server log:"
tail -n 10 "$ruby_logfile" cat "$ruby_logfile"
echo "[-] end of client log:" echo "[-] end of client log:"
tail -n 10 "$logdir/client.txt" cat "$logdir/client.txt"
fi fi
if [ ! -s "$ruby_logfile_err" ] if [ ! -s "$ruby_logfile_err" ]
then then
@ -338,6 +338,8 @@ then
# ddnet quitting can get stuck so send a kill to ensure it dies # ddnet quitting can get stuck so send a kill to ensure it dies
kill "$_client_pid" kill "$_client_pid"
sleep 1 # wait for logfiles to be written
assert_in_log "hello gamers" "$ruby_logfile" 1 assert_in_log "hello gamers" "$ruby_logfile" 1
assert_in_log "[testchat] test_client: uwu" "$ruby_logfile" 1 assert_in_log "[testchat] test_client: uwu" "$ruby_logfile" 1
else else