Skip to content

Commit eef3d0d

Browse files
committed
NO-JIRA: fix selftest, need to use gmake on macOS (opendatahub-io#799)
(cherry picked from commit 01e0e12)
1 parent 350bc2b commit eef3d0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/cached-builds/gha_pr_changed_files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
import os
33
import pathlib
44
import re
5+
import shutil
56
import subprocess
67
import unittest
78

89
PROJECT_ROOT = pathlib.Path(__file__).parent.parent.parent.resolve()
10+
MAKE = shutil.which("gmake") or shutil.which("make")
911

1012

1113
def get_github_token() -> str:
@@ -29,7 +31,7 @@ def analyze_build_directories(make_target) -> list[str]:
2931
pattern = re.compile(r"#\*# Image build directory: <(?P<dir>[^>]+)> #\(MACHINE-PARSED LINE\)#\*#\.\.\.")
3032
try:
3133
logging.debug(f"Running make in --just-print mode for target {make_target}")
32-
for line in subprocess.check_output(["make", make_target, "--just-print"], encoding="utf-8",
34+
for line in subprocess.check_output([MAKE, make_target, "--just-print"], encoding="utf-8",
3335
cwd=PROJECT_ROOT).splitlines():
3436
if m := pattern.match(line):
3537
directories.append(m["dir"])

0 commit comments

Comments
 (0)