Skip to content

Commit

Permalink
kola: add ext tests in current dir if no -E given
Browse files Browse the repository at this point in the history
E.g. when hacking on Ignition tests, I want to be able to just do
`kola run --workdir /srv/fcos ext.ignition.foobar` from the Ignition git
repo.
  • Loading branch information
jlebon authored and openshift-merge-robot committed Jul 15, 2020
1 parent 36036db commit 4d952b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mantle/cmd/kola/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ func syncOptionsImpl(useCosa bool) error {
return err
}

// if no external dirs were given, automatically add the working directory;
// does nothing if ./tests/kola/ doesn't exist
if len(runExternals) == 0 {
runExternals = []string{"."}
}

foundCosa := false
if kola.Options.CosaBuildId != "" {
// specified --build? fetch that build. in this path we *require* a
Expand Down

0 comments on commit 4d952b5

Please sign in to comment.