mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
15 lines
419 B
Go
15 lines
419 B
Go
package apptest
|
|
|
|
import "io"
|
|
|
|
// StartVmrestore starts an instance of vmrestore with the given flags and waits
|
|
// until it exits.
|
|
func StartVmrestore(instance, src, storageDataPath string, output io.Writer) error {
|
|
flags := []string{
|
|
"-src=" + src,
|
|
"-storageDataPath=" + storageDataPath,
|
|
}
|
|
_, _, err := startApp(instance, "../../bin/vmrestore-race", flags, &appOptions{wait: true, output: output})
|
|
return err
|
|
}
|