From 09b87b9a3d80a8c7266cab2defb6ba544d463b90 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Mon, 23 Mar 2020 16:56:48 +0000 Subject: [PATCH] fix(test): use .falco dir Signed-off-by: Leonardo Di Donato --- test/falco_test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/falco_test.py b/test/falco_test.py index e831a86b050..143caa97c0a 100644 --- a/test/falco_test.py +++ b/test/falco_test.py @@ -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='') @@ -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) @@ -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))