We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c99ae2 commit c43b2b1Copy full SHA for c43b2b1
java/ql/integration-tests/java/maven-download-failure/test.py
@@ -3,8 +3,12 @@
3
import shutil
4
5
def test(codeql, java, check_diagnostics):
6
+
7
+ # Avoid shutil resolving mvn to the wrapper script in the test dir:
8
+ os.environ["NoDefaultCurrentDirectoryInExePath"] = "0"
9
runenv = {
10
"PATH": os.path.realpath(os.path.dirname(__file__)) + os.pathsep + os.getenv("PATH"),
11
"REAL_MVN_PATH": shutil.which("mvn"),
12
}
13
+ del os.environ["NoDefaultCurrentDirectoryInExePath"]
14
codeql.database.create(build_mode = "none", _env = runenv)
0 commit comments