Skip to content

Commit 187d71b

Browse files
committed
CMake: Fix Symlinks for Exe Search
In WarpX, we also build a symlink `warpx` that points to the latest build executable. Skip this one in our search for CMake executables.
1 parent e3012a6 commit 187d71b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

suite.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import os
44
import glob
5+
from pathlib import Path
56
import shutil
67
import sys
78
import test_util
@@ -1245,8 +1246,9 @@ def build_test_cmake(self, test, opts="", outfile=None):
12451246
for f in filenames:
12461247
f_path = os.path.join(root, f)
12471248
if os.access(f_path, os.X_OK):
1248-
path_to_exe = f_path
1249-
break
1249+
if not Path(f_path).is_symlink():
1250+
path_to_exe = f_path
1251+
break
12501252
if path_to_exe is not None:
12511253
break
12521254

0 commit comments

Comments
 (0)