mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-05 11:21:58 -05:00
More debugging
This commit is contained in:
@@ -16,7 +16,6 @@ package dtestutils
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
@@ -52,6 +51,16 @@ func CreateTestEnvForLocalFilesystem() *env.DoltEnv {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = fs.MkDirs("test")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fs, err = fs.WithWorkingDir("test")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
homeDir := filepath.Join(tempDir, "home")
|
||||
err = fs.MkDirs("home")
|
||||
if err != nil {
|
||||
@@ -85,7 +94,7 @@ func createTestEnvWithNameAndFilesystem(envName string, fs filesys.Filesys, home
|
||||
if isInMemFs {
|
||||
urlStr = doltdb.InMemDoltDB + envName
|
||||
} else {
|
||||
urlStr = fmt.Sprintf("file://%s/.dolt/noms", envName)
|
||||
urlStr = doltdb.LocalDirDoltDB
|
||||
}
|
||||
|
||||
dEnv := env.Load(context.Background(), homeDirFunc, fs, urlStr, "test")
|
||||
|
||||
Reference in New Issue
Block a user