mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
fix system-tables.bats dolt_help expectation
This commit is contained in:
10
go/libraries/doltcore/env/remotes.go
vendored
10
go/libraries/doltcore/env/remotes.go
vendored
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user