From 0fd41d928f56eb4c5db086a77db73cbed832e3f3 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Wed, 24 Jan 2024 17:44:09 +0800 Subject: [PATCH] Try to fix CI stability --- integration_test/run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integration_test/run.sh b/integration_test/run.sh index bcc5538..04c57e1 100755 --- a/integration_test/run.sh +++ b/integration_test/run.sh @@ -152,9 +152,9 @@ fail() { tail "$logdir/server.txt" else echo "[-] end of ruby server log:" - tail -n 10 "$ruby_logfile" + cat "$ruby_logfile" echo "[-] end of client log:" - tail -n 10 "$logdir/client.txt" + cat "$logdir/client.txt" fi if [ ! -s "$ruby_logfile_err" ] then @@ -338,6 +338,8 @@ then # ddnet quitting can get stuck so send a kill to ensure it dies kill "$_client_pid" + sleep 1 # wait for logfiles to be written + assert_in_log "hello gamers" "$ruby_logfile" 1 assert_in_log "[testchat] test_client: uwu" "$ruby_logfile" 1 else