Skip to content

Commit 36e0343

Browse files
committed
JUnit Maven integration tests: use purge-local-repository
1 parent b4c090f commit 36e0343

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
@@ -1376,12 +1376,18 @@ def graalpython_gate_runner(args, tasks):
13761376
pom_path = os.path.join(SUITE.dir, 'graalpython/com.oracle.graal.python.test.integration/pom.xml')
13771377
mvn_cmd_base = ['-f', pom_path, f'-Dpolyglot_repo={mvn_repo_path}', f'-Dcentral_repo={central_override}', '--batch-mode']
13781378

1379+
mx.logv("Purging the local repository before the test")
1380+
mx.run_maven(mvn_cmd_base + ['dependency:purge-local-repository', '-DreResolve=false'])
1381+
13791382
mx.log("Running integration JUnit tests on GraalVM SDK")
13801383
env = extend_os_env(JAVA_HOME=graalvm_jdk())
1381-
mx.run_maven(mvn_cmd_base + ['clean', 'test'], env=env)
1384+
mx.run_maven(mvn_cmd_base + ['-U', 'clean', 'test'], env=env)
13821385

13831386
mx.log(f"Running integration JUnit tests on vanilla JDK: {os.environ.get('JAVA_HOME', 'system java')}")
1384-
mx.run_maven(mvn_cmd_base + ['-Dpolyglot.engine.WarnInterpreterOnly=false', 'clean', 'test'])
1387+
mx.run_maven(mvn_cmd_base + ['-U', '-Dpolyglot.engine.WarnInterpreterOnly=false', 'clean', 'test'])
1388+
1389+
mx.logv("Purging the local repository after the test")
1390+
mx.run_maven(mvn_cmd_base + ['dependency:purge-local-repository', '-DreResolve=false'])
13851391

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

0 commit comments

Comments
 (0)