Skip auto_increment_lock_modes.bats when running tests wiht remote-engine: the test manages the engine itself.

This commit is contained in:
Nick Tobey
2024-04-11 14:09:25 -07:00
parent 0f5cc289d6
commit 19c89b3184
@@ -60,9 +60,12 @@ teardown() {
system_variables:
innodb_autoinc_lock_mode: 0
EOF
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "This test tests remote connections directly, SQL_ENGINE is not needed."
fi
start_sql_server_with_config "" config.yml
dolt sql -q "INSERT INTO test1 (c0) select 0 from sequence5bit; INSERT INTO ranges VALUES (0, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;" &
dolt sql -q "INSERT INTO test1 (c0) select 1 from sequence5bit; INSERT INTO ranges VALUES (1, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;"
dolt sql -q "INSERT INTO test1 (c0) select 0 from sequence10bit; INSERT INTO ranges VALUES (0, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;" &
dolt sql -q "INSERT INTO test1 (c0) select 1 from sequence10bit; INSERT INTO ranges VALUES (1, LAST_INSERT_ID(), ROW_COUNT()); COMMIT;"
wait $!
stop_sql_server
@@ -70,7 +73,7 @@ EOF
run dolt sql -r csv -q "select
c0,
min(pk) = firstId,
rowCount = 32,
rowCount = 1024,
max(pk) = firstId + rowCount -1
from test1 join ranges on test1.c0 = ranges.pk group by c0"
[ "$status" -eq 0 ]