Skip to content

Commit

Permalink
chore(tests/falcodriverloader): fixed up falcoctl driver loader strin…
Browse files Browse the repository at this point in the history
…gs for v0.8.0-rc3+.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed May 13, 2024
1 parent 50aee19 commit 6cab03c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/falcodriverloader/drivers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestFalcoLegacyBPF(t *testing.T) {
assert.NoError(t, loaderRes.Err(), "%s", loaderRes.Stderr())
assert.Equal(t, 0, loaderRes.ExitCode())
// We expect the probe to be succesfully built and copied to /root/.falco/falco-bpf.o
assert.Regexp(t, `Driver built.`, loaderRes.Stdout())
assert.Regexp(t, `eBPF probe available.`, loaderRes.Stdout())

// Now running Falco with `FALCO_BPF_PROBE=/root/.falco/falco-bpf.o` we should be able to run the bpf driver
falcoRes := falco.Test(
Expand Down Expand Up @@ -84,7 +84,7 @@ func TestFalcoKmod(t *testing.T) {
assert.NoError(t, loaderRes.Err(), "%s", loaderRes.Stderr())
assert.Equal(t, 0, loaderRes.ExitCode())
// We expect the module to be loaded in dkms
assert.Regexp(t, `Module installed in dkms.`, loaderRes.Stdout())
assert.Regexp(t, `kernel module available.`, loaderRes.Stdout())

// Now running Falco we should be able to run the kernel module
falcoRes := falco.Test(
Expand Down

0 comments on commit 6cab03c

Please sign in to comment.