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.
pull/1924/head
Patrick Griffis 8 years ago
parent a88ad9173a
commit 733aee123d
  1. 3
      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:

Loading…
Cancel
Save