X-Git-Url: http://git.efficios.com/?p=deliverable%2Flttng-ivc.git;a=blobdiff_plain;f=lttng_ivc%2Futils%2Fruntime.py;fp=lttng_ivc%2Futils%2Fruntime.py;h=716617608c50879f98b6a9ea80146e7ed3a8f1e1;hp=6c9f04c04e0deb77c3a8df035113b6d9fbf8b7b3;hb=d49a878b72de0049cab9c1b39af363cd83720415;hpb=8b2a61d036ad9891f4a219d28cb421868032a6b8 diff --git a/lttng_ivc/utils/runtime.py b/lttng_ivc/utils/runtime.py index 6c9f04c..7166176 100644 --- a/lttng_ivc/utils/runtime.py +++ b/lttng_ivc/utils/runtime.py @@ -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"))