Commit a2088ea6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bb725f9f
...@@ -207,9 +207,10 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption ...@@ -207,9 +207,10 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
}() }()
if opt.Preload != "" { if opt.Preload != "" {
cmd := exec.Command("python", "-m", "neo.scripts.neomigrate", cmd := exec.Command("python", "-c",
"-s", opt.Preload, "from neo.scripts.neomigrate import main; main()",
"-d", npy.MasterAddr(), "-c", npy.ClusterName()) "-s", opt.Preload,
"-d", npy.MasterAddr(), "-c", npy.ClusterName())
cmd.Stdin = nil cmd.Stdin = nil
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment