Hard linking between devices (e.g encrypted partition and /tmp) does not work.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
# value.
self.unload_test_module(False)
# 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"))