integration-tests/bats: Skip some tests where we use dolt init in SQL_ENGINE=remote-engine mode.

This commit is contained in:
Aaron Son
2023-11-29 20:49:48 -08:00
parent d3473c602c
commit 677c553c5c
2 changed files with 28 additions and 0 deletions

View File

@@ -208,6 +208,10 @@ SQL
}
@test "sql-shell: specify data-dir" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
# remove config files
rm -rf .doltcfg
rm -rf db_dir
@@ -378,6 +382,10 @@ SQL
}
@test "sql-shell: specify data-dir and doltcfg-dir" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
# remove config files
rm -rf .doltcfg
rm -rf db_dir
@@ -477,6 +485,10 @@ SQL
}
@test "sql-shell: specify data-dir and privilege-file" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
# remove config files
rm -rf .doltcfg
rm -rf db_dir
@@ -618,6 +630,10 @@ SQL
}
@test "sql-shell: specify data directory, cfg directory, and privilege file" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
# remove config files
rm -rf .doltcfg
rm -rf db_dir
@@ -729,6 +745,10 @@ SQL
@test "sql-shell: .doltcfg in parent directory errors" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
# remove existing directories
rm -rf .doltcfg
rm -rf inner_db

View File

@@ -60,6 +60,10 @@ teardown() {
}
@test "undrop: undrop root database with hyphen replaced in its name" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
export DOLT_DBNAME_REPLACE="true"
setup_remote_server
# Create a new Dolt database directory to use as a root database
@@ -97,6 +101,10 @@ EOF
}
@test "undrop: undrop root database with hyphen allowed in its name" {
if [ "$SQL_ENGINE" = "remote-engine" ]; then
skip "Remote behavior differs"
fi
setup_remote_server
# Create a new Dolt database directory to use as a root database
# NOTE: We use hyphens here to test how db dirs are renamed.