From: Jonathan Rajotte Date: Tue, 12 Mar 2019 18:30:31 +0000 (-0400) Subject: Fix tests: the tree origin can be a symlink itself X-Git-Tag: v2.12.0-rc1~631 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=f66e964a2e0c75f5e1a55fbcc963b1c5e2b4519d;hp=f66e964a2e0c75f5e1a55fbcc963b1c5e2b4519d;p=lttng-tools.git Fix tests: the tree origin can be a symlink itself Problem: The base tree is defined as "/tmp/.....XXXXXX". On systems where "/tmp/" is itself a symlink utils_expand_path will expand the tree origin itself. For example on a base core-image-minimal Yocto build /tmp is a symlink to "/var/tmp", which is a symlink to "/var/volatile". utils_expand_path will return something like this for the symlink test: "/var/volative/.....XXXXXX/...." which is the valid result. Solution: Simply use realpath on the tree_origin and use this path to perform the test validation. This work was performed in the effort to support yocto fully and be able to run the test suite to detect problem as early as possible. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---