mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
Update tests to only print component output in integration tests if the test case is failing. An example of pipeline failure: https://github.com/VictoriaMetrics/VictoriaMetrics/actions/runs/16473633711/job/46569913168?pr=9491 --------- Signed-off-by: Zakhar Bessarab <[email protected]>
15 lines
414 B
Go
15 lines
414 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", flags, &appOptions{wait: true, output: output})
|
|
return err
|
|
}
|