Skip to content

Commit 763c658

Browse files
committed
Run HPy tests in mxbuild directory
1 parent 9205dfa commit 763c658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,7 @@ def _graalpytest_root():
916916
HPY_TEST_PROJECT = "com.oracle.graal.python.hpy.test"
917917

918918
def _hpy_test_root():
919-
# we should just have one source dir
920-
for src_dir in mx.dependency(HPY_TEST_PROJECT).source_dirs():
921-
return os.path.join(src_dir, "test")
919+
return os.path.join(mx.dependency(HPY_TEST_PROJECT).get_output_root(), "bin", "hpytest")
922920

923921

924922
def graalpytest(args):
@@ -1147,6 +1145,8 @@ def run_hpy_unittests(python_binary, args=None, include_native=True, env=None, n
11471145
mx.run([python_binary] + args + ["-m", "pip", "install", "--user", "pytest<=6.2.3", "pytest-xdist", "filelock"],
11481146
nonZeroIsFatal=nonZeroIsFatal, env=env, timeout=timeout)
11491147
if not is_collecting_coverage():
1148+
global DISABLE_REBUILD
1149+
DISABLE_REBUILD = True
11501150
# parallelize
11511151
import threading
11521152
threads = []

0 commit comments

Comments
 (0)