Skip to content

Commit c04e02f

Browse files
committed
Look for gtimeout on darwin
1 parent fa1e7e0 commit c04e02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def fun(self):
123123
else:
124124
glob_pattern = os.path.join(os.path.dirname(test.__file__), arg)
125125

126-
p = subprocess.run(["/usr/bin/which", "timeout"], **kwargs)
126+
p = subprocess.run(["/usr/bin/which", "timeout" if sys.platform != 'darwin' else 'gtimeout'], **kwargs)
127127
if p.returncode != 0:
128128
print("Cannot find the 'timeout' GNU tool. Do you have coreutils installed?")
129129
sys.exit(1)

0 commit comments

Comments
 (0)