Files
kopia/tests/tools/fio/main_test.go
Nick c5d8c9a271 Using docker to wrap fio execution to add robustness tool tests to Travis
Update the fio runner to use a docker image if the appropriate environment variable is set. Docker image is built via a makefile target and used in the robustness tool tests.
2020-03-03 20:36:43 -08:00

22 lines
349 B
Go

package fio
import (
"fmt"
"os"
"testing"
)
func TestMain(m *testing.M) {
fioExe := os.Getenv(FioExeEnvKey)
fioImg := os.Getenv(FioDockerImageEnvKey)
if fioExe == "" && fioImg == "" {
fmt.Printf("Skipping fio tests if neither %s no %s is set\n", FioExeEnvKey, FioDockerImageEnvKey)
os.Exit(0)
}
result := m.Run()
os.Exit(result)
}