Commit 23d8c235 authored by Kirill Smelkov's avatar Kirill Smelkov

X go/neo: tests: Fixup neomigrate invocation

After NEO/py commit 9f1e4eef (Use argparse instead of optparse)
neomigrate signature changed:

* -s and -d were removed: src and dst are specified as just arguments;
* -q was added to silence importer-related warnings.
parent 769787fc
......@@ -211,8 +211,10 @@ func withNEOSrv(t *testing.T, f func(t *testing.T, nsrv NEOSrv), optv ...tOption
if opt.Preload != "" {
cmd := exec.Command("python", "-c",
"from neo.scripts.neomigrate import main; main()",
"-s", opt.Preload,
"-d", npy.MasterAddr(), "-c", npy.ClusterName())
"-q",
"-c", npy.ClusterName(),
opt.Preload,
npy.MasterAddr())
cmd.Stdin = nil
cmd.Stdout = os.Stdout
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