summaryrefslogtreecommitdiff
path: root/test/end-to-end/with_serve_test_runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/end-to-end/with_serve_test_runner.py')
-rwxr-xr-xtest/end-to-end/with_serve_test_runner.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/end-to-end/with_serve_test_runner.py b/test/end-to-end/with_serve_test_runner.py
index 2782b7ed..25723a2c 100755
--- a/test/end-to-end/with_serve_test_runner.py
+++ b/test/end-to-end/with_serve_test_runner.py
@@ -75,6 +75,8 @@ SERVE_DIR = os.path.realpath("serve")
os.makedirs(SERVE_DIR, exist_ok=True)
SERVE_LBR = os.path.join(SERVE_DIR, "build-root")
+compatible = json.loads(sys.argv[1])
+
remote_proc = None
# start just execute as remote service
@@ -96,6 +98,9 @@ remote_cmd = [
"--plain-log",
]
+if compatible:
+ remote_cmd.append("--compatible")
+
remotestdout = open("remotestdout", "w")
remotestderr = open("remotestderr", "w")
remote_proc = subprocess.Popen(
@@ -123,7 +128,8 @@ serve_config: Json = {
"plain": True
},
"execution endpoint": {
- "address": g_REMOTE_EXECUTION_ADDRESS
+ "address": g_REMOTE_EXECUTION_ADDRESS,
+ "compatible": compatible
},
"remote service": {
"info file": SERVE_INFO
@@ -219,7 +225,9 @@ ENV = dict(
SERVE_LBR=SERVE_LBR, # expose the serve build root to the test env
**repos_env)
-if "COMPATIBLE" in ENV:
+if compatible:
+ ENV["COMPATIBLE"] = "YES"
+elif "COMPATIBLE" in ENV:
del ENV["COMPATIBLE"]
for k in ["TLS_CA_CERT", "TLS_CLIENT_CERT", "TLS_CLIENT_KEY"]: