1
0
Fork 0

Add artifact config flag

timestamps
dump_stack() 2023-02-01 07:37:08 +00:00
parent 82436cbd83
commit a0ee660e50
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 11 additions and 1 deletions

View File

@ -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

10
pew.go
View File

@ -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
}