Skip to content

Commit

Permalink
Fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Feb 28, 2025
1 parent 4adca04 commit 0534a40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/ql/integration-tests/java/maven-download-failure/test.py
Original file line number Diff line number Diff line change
@@ -3,8 +3,12 @@
import shutil

def test(codeql, java, check_diagnostics):

# Avoid shutil resolving mvn to the wrapper script in the test dir:
os.environ["NoDefaultCurrentDirectoryInExePath"] = "0"
runenv = {
"PATH": os.path.realpath(os.path.dirname(__file__)) + os.pathsep + os.getenv("PATH"),
"REAL_MVN_PATH": shutil.which("mvn"),
}
del os.environ["NoDefaultCurrentDirectoryInExePath"]
codeql.database.create(build_mode = "none", _env = runenv)

0 comments on commit 0534a40

Please sign in to comment.