Skip to content

Commit 5cd87bf

Browse files
committed
Ignore non-mx-suites when looking for a repo to import
1 parent d7c3df7 commit 5cd87bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,11 +741,12 @@ def delete_self_if_testdownstream(args):
741741

742742
def update_import(name, suite_py, rev="origin/master"):
743743
parent = os.path.join(SUITE.dir, "..")
744+
dep_dir = None
744745
for dirpath, dirnames, _ in os.walk(parent):
745746
if os.path.sep in os.path.relpath(dirpath, parent):
746747
dirnames.clear() # we're looking for siblings or sibling-subdirs
747-
elif name in dirnames:
748-
dep_dir = os.path.join(os.path.join(dirpath))
748+
elif name in dirnames and os.path.isdir(os.path.join(dirpath, name, "mx.%s" % name)):
749+
dep_dir = dirpath
749750
break
750751
if not dep_dir:
751752
mx.warn("could not find suite %s to update" % name)

0 commit comments

Comments
 (0)