aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-06-17 08:37:31 -0400
committerPatrick Griffis <tingping@tingping.se>2017-06-17 08:39:30 -0400
commit733aee123d79e9540395150fb5aecc43dd46068b (patch)
tree53eb77a358b4a28d3385526040e807a1b7b2a38d
parenta88ad9173a9777a70c036a100e956040a879baf2 (diff)
downloadmeson-733aee123d79e9540395150fb5aecc43dd46068b.zip
meson-733aee123d79e9540395150fb5aecc43dd46068b.tar.gz
meson-733aee123d79e9540395150fb5aecc43dd46068b.tar.bz2
tests: Always consider symlink as valid installed file
An installed symlink might point to a non-existing file (because DESTDIR is set) so just always accept them.
-rwxr-xr-xrun_project_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 822286b..d6b10ab 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -214,7 +214,8 @@ def validate_install(srcdir, installdir, compiler):
expected[platform_fix_name(line.strip())] = False
# Check if expected files were found
for fname in expected:
- if os.path.exists(os.path.join(installdir, fname)):
+ file_path = os.path.join(installdir, fname)
+ if os.path.exists(file_path) or os.path.islink(file_path):
expected[fname] = True
for (fname, found) in expected.items():
if not found: