fix system-tables.bats dolt_help expectation

This commit is contained in:
elianddb
2025-11-24 19:49:51 -08:00
parent e5f1ec29ba
commit 3ced9f13a3
2 changed files with 10 additions and 2 deletions

View File

@@ -692,7 +692,15 @@ func getAbsFileRemoteUrl(u *url.URL, fs filesys2.Filesys) (string, error) {
}
exists, isDir := fs.Exists(urlStr)
if exists && !isDir {
if !exists {
// TODO: very odd that GetAbsRemoteUrl will create a directory if it doesn't exist.
// This concern should be separated
err = fs.MkDirs(urlStr)
if err != nil {
return "", fmt.Errorf("failed to create directory '%s': %w", urlStr, err)
}
} else if !isDir {
return "", filesys2.ErrIsFile
}

View File

@@ -887,7 +887,7 @@ SQL
run dolt sql -q "select synopsis from dolt_help where name='dolt_backup'"
[ "$status" -eq 0 ]
[[ "$output" =~ "dolt backup [-v | --verbose]" ]] || false
[[ "$output" =~ "dolt backup restore [--force] <url> <name>" ]] || false
[[ "$output" =~ "restore [--aws-region <region>] [--aws-creds-type <creds-type>] [--aws-creds-file <file>] [--aws-creds-profile <profile>] [--force] <url> <name>" ]] || false
run dolt sql -q "select short_description from dolt_help where name='dolt_commit'"
[ "$status" -eq 0 ]