Skip to content

Commit 2547f5b

Browse files
committed
clear jbang cache
1 parent 39b5b5d commit 2547f5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/standalone/test_jbang_integration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def setUpClass(self):
7474
return
7575
self.ensureProxy()
7676
self.ensureLocalMavenRepo()
77+
self.clearCache()
7778
self.catalog_file = self.getCatalogFile()
7879
self.registerCatalog(self.catalog_file)
7980

@@ -115,6 +116,10 @@ def ensureLocalMavenRepo(self):
115116
if MAVEN_REPO_LOCAL_URL is None:
116117
self.fail("'org.graalvm.maven.downloader.repository' is not defined")
117118

119+
def clearCache(self):
120+
command = [JBANG_CMD, "cache", "clear"]
121+
out, result = run_cmd(command)
122+
118123
def getCatalogFile(self):
119124
catalog_dir = os.path.dirname(os.path.abspath(__file__))
120125
for _ in range(5):

0 commit comments

Comments
 (0)