8000 JUnit Maven integration tests: use purge-local-repository (GR-48602) · oracle/graalpython@391a3c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 391a3c0

Browse files
committed
JUnit Maven integration tests: use purge-local-repository (GR-48602)
(cherry picked from commit 36e0343)
1 parent 9ea88a6 commit 391a3c0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,12 +1505,18 @@ def graalpython_gate_runner(args, tasks):
15051505
pom_path = os.path.join(SUITE.dir, 'graalpython/com.oracle.graal.python.test.integration/pom.xml')
15061506
mvn_cmd_base = ['-f', pom_path, f'-Dpolyglot_repo={mvn_repo_path}', f'-Dcentral_repo={central_override}', '--batch-mode']
15071507

1508+
mx.logv("Purging the local repository before the test")
1509+
mx.run_maven(mvn_cmd_base + ['dependency:purge-local-repository', '-DreResolve=false'])
1510+
15081511
mx.log("Running integration JUnit tests on GraalVM SDK")
15091512
env = extend_os_env(JAVA_HOME=graalvm_jdk())
1510-
mx.run_maven(mvn_cmd_base + ['clean', 'test'], env=env)
1513+
mx.run_maven(mvn_cmd_base + ['-U', 'clean', 'test'], env=env)
15111514

15121515
mx.log(f"Running integration JUnit tests on vanilla JDK: {os.environ.get('JAVA_HOME', 'system java')}")
1513-
mx.run_maven(mvn_cmd_base + ['-Dpolyglot.engine.WarnInterpreterOnly=false', 'clean', 'test'])
1516+
mx.run_maven(mvn_cmd_base + ['-U', '-Dpolyglot.engine.WarnInterpreterOnly=false', 'clean', 'test'])
1517+
1518+
mx.logv("Purging the local repository after the test")
1519+
mx.run_maven(mvn_cmd_base + ['dependency:purge-local-repository', '-DreResolve=false'])
15141520

15151521
# Unittests on JVM
15161522
with Task('GraalPython Python unittests', tasks, tags=[GraalPythonTags.unittest]) as task:

0 commit comments

Comments
 (0)
0