Skip to content

Commit 9eb7770

Browse files
committed
[GR-42711] Use the source test python files, not the copy in test project output dir
PullRequest: graalpython/3405
2 parents 68d7101 + efdd101 commit 9eb7770

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,9 +1077,8 @@ def native_image(args):
10771077
def _graalpytest_driver():
10781078
return os.path.join(SUITE.dir, "graalpython", "com.oracle.graal.python.test", "src", "graalpytest.py")
10791079

1080-
10811080
def _graalpytest_root():
1082-
return os.path.join(mx.dependency("com.oracle.graal.python.test").get_output_root(), "bin", "tests")
1081+
return os.path.join(SUITE.dir, "graalpython", "com.oracle.graal.python.test", "src", "tests")
10831082

10841083

10851084
# name of the project containing the HPy tests
@@ -1097,10 +1096,6 @@ def graalpytest(args):
10971096
parser.add_argument('test', nargs="*", default=[], help='Test file to run (specify absolute or relative; e.g. "/path/to/test_file.py" or "cpyext/test_object.py") ')
10981097
args, unknown_args = parser.parse_known_args(args)
10991098

1100-
# ensure that the test distribution is up-to-date
1101-
if not DISABLE_REBUILD:
1102-
mx.command_function("build")(["--only", "com.oracle.graal.python.test"])
1103-
11041099
testfiles = _list_graalpython_unittests(args.test)
11051100
cmd_args = []
11061101
# if we got a binary path it's most likely CPython, so don't add graalpython args

0 commit comments

Comments
 (0)