diff --git a/pkg/falco/tester.go b/pkg/falco/tester.go index 982b3f9..8150ce5 100644 --- a/pkg/falco/tester.go +++ b/pkg/falco/tester.go @@ -78,6 +78,10 @@ func Test(runner run.Runner, options ...TestOption) *TestOutput { ctx: context.Background(), }, } + + // enforce Falco config path + res.opts.args = append(res.opts.args, "-c", FalcoConfig) + for _, o := range options { o(res.opts) } @@ -85,9 +89,6 @@ func Test(runner run.Runner, options ...TestOption) *TestOutput { return res } - // enforce Falco config path - res.opts.args = append(res.opts.args, "-c", FalcoConfig) - // enforce logging everything on stdout res.opts.args = append(res.opts.args, "-o", "log_level=debug") res.opts.args = append(res.opts.args, "-o", "log_stderr=true")