Skip to content

Commit

Permalink
fix(test): use .falco dir
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido authored and poiana committed Mar 23, 2020
1 parent a9658d4 commit 09b87b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/falco_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def setUp(self):
self.copy_local_driver = self.params.get('copy_local_driver', '*', default=False)

# Used by possibly_copy_local_driver as well as docker run
self.module_dir = os.path.expanduser("~/.sysdig")
self.module_dir = os.path.expanduser("~/.falco")

self.outputs = self.params.get('outputs', '*', default='')

Expand Down Expand Up @@ -335,7 +335,7 @@ def install_package(self):
self.falco_binary_path = "docker run --rm --name falco-test --privileged " \
"-v /var/run/docker.sock:/host/var/run/docker.sock " \
"-v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro " \
"-v /lib/modules:/host/lib/modules:ro -v {}:/root/.sysdig:ro " \
"-v /lib/modules:/host/lib/modules:ro -v {}:/root/.falco:ro " \
"-v /usr:/host/usr:ro {} {} falco".format(
self.module_dir, self.addl_docker_run_args, image)

Expand Down Expand Up @@ -387,8 +387,7 @@ def uninstall_package(self):
res = process.run(cmdline, timeout=120, sudo=True)

def possibly_copy_driver(self):
# Remove the contents of ~/.sysdig regardless of
# copy_local_driver.
# Remove the contents of ~/.falco regardless of copy_local_driver.
self.log.debug("Checking for module dir {}".format(self.module_dir))
if os.path.isdir(self.module_dir):
self.log.info("Removing files below directory {}".format(self.module_dir))
Expand Down

0 comments on commit 09b87b9

Please sign in to comment.