Skip to content

Commit 165a7ba

Browse files
committed
use GRAALPYTHON_GRAALVM_SUPPORT as home for running junit tests
1 parent 62b994b commit 165a7ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ To run the JUnit tests, you can use this command:
129129
To run a subset of the tests, you can use the following. Again, you can use `-d`
130130
to attach with a Java debugger.
131131

132-
mx [-d] unittest JAVA-TEST-CLASSNAME
132+
mx [-d] punittest JAVA-TEST-CLASSNAME
133133

134134
To run the Python standard library tests, you can use the following:
135135

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def punittest(ars):
170170
"-Dgraal.TruffleCompilationExceptionsArePrinted=true",
171171
"-Dgraal.TrufflePerformanceWarningsAreFatal=false"]
172172
args += ars
173-
mx_unittest.unittest(args)
173+
with set_env(GRAAL_PYTHONHOME=mx.dependency("GRAALPYTHON_GRAALVM_SUPPORT").get_output()):
174+
mx_unittest.unittest(args)
174175

175176

176177
PYTHON_ARCHIVES = ["GRAALPYTHON_GRAALVM_SUPPORT"]

0 commit comments

Comments
 (0)