Skip to content

Commit

Permalink
fix: add the config option before for loop
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
  • Loading branch information
Andreagit97 committed Feb 15, 2024
1 parent ffc9c53 commit 6b85a7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/falco/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,17 @@ 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)
}
if res.opts.err != nil {
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")
Expand Down

0 comments on commit 6b85a7e

Please sign in to comment.