Update java/ql/integration-tests/java/buildless-snapshot-repository/test.py

Co-authored-by: Paolo Tranquilli <redsun82@github.com>
This commit is contained in:
Óscar San José
2025-04-08 16:29:16 +02:00
committed by GitHub
parent 3b56f95480
commit 1eb4a1aa81

View File

@@ -6,7 +6,8 @@ def test(codeql, java):
# This serves the "repo" directory on http://localhost:9427
command = ["python3", "-m", "http.server", "9427", "-b", "localhost"]
if runs_on.github_actions and runs_on.posix:
# On GitHub Actions, we try to run the server with higher priority
# On GitHub Actions, we saw the server timing out while running in parallel with other tests
# we work around that by running it with higher permissions
command = ["sudo"] + command
repo_server_process = subprocess.Popen(
command, cwd="repo"