mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Fix test on Windows
This commit is contained in:
@@ -3,8 +3,12 @@ import os.path
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user