diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bb8b58..d766413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ - Adding TestFiles to artifact config, transfers extra test files to VM. +- Flag `--artifact-config` to specify the path to .out-of-tree.toml. + ## [1.4.0] ### Added diff --git a/pew.go b/pew.go index 10482f1..8b070fc 100644 --- a/pew.go +++ b/pew.go @@ -39,6 +39,8 @@ type PewCmd struct { Verbose bool `help:"show more information"` Timeout time.Duration `help:"timeout after tool will not spawn new tests"` + ArtifactConfig string `help:"path to artifact config" type:"path"` + QemuTimeout time.Duration `help:"timeout for qemu"` DockerTimeout time.Duration `help:"timeout for docker"` @@ -62,7 +64,13 @@ func (cmd PewCmd) Run(g *Globals) (err error) { } defer db.Close() - ka, err := config.ReadArtifactConfig(g.WorkDir + "/.out-of-tree.toml") + var configPath string + if cmd.ArtifactConfig == "" { + configPath = g.WorkDir + "/.out-of-tree.toml" + } else { + configPath = cmd.ArtifactConfig + } + ka, err := config.ReadArtifactConfig(configPath) if err != nil { return }