mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03: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 <z.bessarab@victoriametrics.com>
16 lines
475 B
Go
16 lines
475 B
Go
package apptest
|
|
|
|
import "io"
|
|
|
|
// StartVmbackup starts an instance of vmbackup with the given flags and waits
|
|
// until it exits.
|
|
func StartVmbackup(instance, storageDataPath, snapshotCreateURL, dst string, output io.Writer) error {
|
|
flags := []string{
|
|
"-storageDataPath=" + storageDataPath,
|
|
"-snapshot.createURL=" + snapshotCreateURL,
|
|
"-dst=" + dst,
|
|
}
|
|
_, _, err := startApp(instance, "../../bin/vmbackup", flags, &appOptions{wait: true, output: output})
|
|
return err
|
|
}
|