File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
java/ql/integration-tests/java/buildless-inherit-trust-store Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import subprocess
2
2
import os
3
+ import runs_on
3
4
4
5
5
6
def test (codeql , java , cwd ):
6
7
# This serves the "repo" directory on https://locahost:4443
7
- repo_server_process = subprocess .Popen (["python3" , "../server.py" ], cwd = "repo" )
8
+ command = ["python3" , "../server.py" ]
9
+ if runs_on .github_actions and runs_on .posix :
10
+ # On GitHub Actions, we try to run the server with higher priority
11
+ command = ["sudo" , "nice" , "-n" , "10" ] + command
12
+ repo_server_process = subprocess .Popen (command , cwd = "repo" )
8
13
certspath = cwd / "jdk8_shipped_cacerts_plus_cert_pem"
9
14
# If we override MAVEN_OPTS, we'll break cross-test maven isolation, so we need to append to it instead
10
15
maven_opts = os .environ ["MAVEN_OPTS" ] + f" -Djavax.net.ssl.trustStore={ certspath } "
You can’t perform that action at this time.
0 commit comments