From: Kornel Benko Date: Sun, 31 Mar 2019 09:34:14 +0000 (+0200) Subject: Cmake export tests: Use absolute paths for subfiles inside the source dir X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2282 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=50779dda7ace5a7c0cb5f22dc2b79a276ad51413;p=features.git Cmake export tests: Use absolute paths for subfiles inside the source dir The testfile is inside the build dir, so no relative path to the source dir should be alloved. --- diff --git a/development/autotests/useSystemFonts.pl b/development/autotests/useSystemFonts.pl index 12c9850765..8beb94cc0f 100644 --- a/development/autotests/useSystemFonts.pl +++ b/development/autotests/useSystemFonts.pl @@ -258,8 +258,10 @@ sub interpretedCopy($$$$) } } } - if ($foundrelative) { + if ($foundrelative && $rStatus->{"filetype"} ne "prefix_for_list") { # The result can be relative too + # but, since prefix_for_list does no copy, we have to use absolute paths + # to address files inside the source dir my @rel_list = (); for my $fr (@{$filelist}) { push(@rel_list, File::Spec->abs2rel($fr, $destdir));