Remove tests on LD_1 format.

This commit is contained in:
Nick Tobey
2023-05-24 15:10:25 -07:00
parent fe5254371c
commit 4949dc71b3
3 changed files with 0 additions and 58 deletions

View File

@@ -191,47 +191,6 @@ teardown() {
[[ $output =~ "NEW ( __DOLT__ )" ]] || false
}
@test "init: initing an old database displays the correct version" {
set_dolt_user "baz", "bazbash.com"
DOLT_DEFAULT_BIN_FORMAT="__LD_1__" dolt init
run dolt version
[ "$status" -eq 0 ]
[[ $output =~ "database storage format: OLD ( __LD_1__ )" ]] || false
run dolt sql -q "SELECT dolt_storage_format();"
[[ $output =~ "OLD ( __LD_1__ )" ]] || false
}
@test "init: get format in multiple database mode" {
orig_bin_format=$DOLT_DEFAULT_BIN_FORMAT
mkdir old_fmt
cd old_fmt
DOLT_DEFAULT_BIN_FORMAT="__LD_1__" dolt init
cd ..
mkdir new_fmt
cd new_fmt
DOLT_DEFAULT_BIN_FORMAT="__DOLT__" dolt init
cd ..
# New format db gets chosen automatically, as it is the only db loaded
export DOLT_DEFAULT_BIN_FORMAT="__DOLT__"
run dolt sql -q "SELECT dolt_storage_format()"
[ $status -eq 0 ]
[[ $output =~ "NEW ( __DOLT__ )" ]] || false
# Old format db gets chosen automatically, as it is the only db loaded
export DOLT_DEFAULT_BIN_FORMAT="__LD_1__"
run dolt sql -q "SELECT dolt_storage_format()"
[ $status -eq 0 ]
[[ $output =~ "OLD ( __LD_1__ )" ]] || false
export DOLT_DEFAULT_BIN_FORMAT=$orig_bin_format
}
@test "init: empty database folder displays no version" {
set_dolt_user "baz", "bazbash.com"

View File

@@ -346,13 +346,6 @@ NOT_VALID_REPO_ERROR="The current directory is not a valid dolt repository."
[[ "$output" =~ "Failed to load the HOME directory" ]]
}
@test "no-repo: init with new storage version" {
DOLT_DEFAULT_BIN_FORMAT="__DOLT__" dolt init
run cat .dolt/noms/manifest
[[ "$output" =~ "__DOLT__" ]]
[[ ! "$output" =~ "__LD_1__" ]]
}
@test "no-repo: dolt login exits when receiving SIGINT" {
dolt login & # run this in the background
PID=$! # capture background PID

View File

@@ -14,16 +14,6 @@ teardown() {
teardown_common
}
@test "stash: stash is not supported for old format" {
if [ "$DOLT_DEFAULT_BIN_FORMAT" = "__LD_1__" ]; then
dolt sql -q "INSERT INTO test VALUES (1, 'a')"
run dolt stash
[ "$status" -eq 1 ]
[[ "$output" =~ "stash is not supported for old storage format" ]] || false
fi
}
@test "stash: stashing on clean working set" {
run dolt stash
[ "$status" -eq 0 ]