Fix: do not use hard linking
[deliverable/lttng-ivc.git] / lttng_ivc / utils / runtime.py
index 6c9f04c04e0deb77c3a8df035113b6d9fbf8b7b3..716617608c50879f98b6a9ea80146e7ed3a8f1e1 100644 (file)
@@ -295,6 +295,7 @@ class Runtime(object):
         # value.
         self.unload_test_module(False)
 
-        # Copy the lttng_home used at runtime using hardlink to prevent useless
-        # data duplication
-        shutil.copytree(self.lttng_home, self.__post_runtime_lttng_home_path, copy_function=os.link)
+        # Hard linking would be nice here but it could be a problem when we use
+        # a tmpdir on another device. Let's consider we have unlimited space.
+        shutil.copytree(self.lttng_home, self.__post_runtime_lttng_home_path,
+                ignore=shutil.ignore_patterns(".lttng"))
This page took 0.024092 seconds and 5 git commands to generate.