From 0929b70d30610c137d0fabcb44009b4152f1860c Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sat, 9 Nov 2024 13:56:28 +0800 Subject: [PATCH] Ignore ~/.sqliterc in integration tests Fixes running tests locally with custom sqliterc such as .mode table Which would create a different output format for the select statements --- scripts/integration_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/integration_test.sh b/scripts/integration_test.sh index b512a154c..ac1f764f9 100755 --- a/scripts/integration_test.sh +++ b/scripts/integration_test.sh @@ -370,7 +370,7 @@ if ! grep -q "demo_player: Stopped playback" client2.log; then echo "[-] Error: demo playback of client demo in client 2 was not started/finished" fi -ranks="$(sqlite3 -cmd '.timeout 10000' ddnet-server.sqlite < <(echo "select * from record_race;"))" +ranks="$(sqlite3 -init /dev/null -cmd '.timeout 10000' ddnet-server.sqlite < <(echo "select * from record_race;"))" rank_time="$(echo "$ranks" | awk -F '|' '{ print "player:", $2, "time:", $4, "cps:", $6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25,$26,$27,$28 }')" expected_times="\ player: client2 time: 1020.98 cps: 0.02 0.1 0.2 0.26 0.32 600.36 600.42 600.46 600.5 1020.54 1020.58 1020.6 1020.64 1020.66 1020.7 1020.72 1020.76 1020.78 1020.8 1020.84 1020.86 1020.88 1020.9