summaryrefslogtreecommitdiff
path: root/test/end-to-end/with_serve_test_runner.py
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-10-23 14:25:23 +0200
committerAlberto Sartori <alberto.sartori@huawei.com>2023-11-15 20:19:18 +0100
commit4e70813985c2487f3602193cbb0cc76ce345602b (patch)
treeab3d5d7501c5bdaea207daacd9f45bce30222a6b /test/end-to-end/with_serve_test_runner.py
parentde02537d99e123f6ac75d03f8a8faeff3429f062 (diff)
downloadjustbuild-4e70813985c2487f3602193cbb0cc76ce345602b.tar.gz
test end-to-end: Expose the serve build root in the test environment
This will allow end-to-end tests to pre-populate the serve build root if needed.
Diffstat (limited to 'test/end-to-end/with_serve_test_runner.py')
-rwxr-xr-xtest/end-to-end/with_serve_test_runner.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/end-to-end/with_serve_test_runner.py b/test/end-to-end/with_serve_test_runner.py
index 15490d9f..2782b7ed 100755
--- a/test/end-to-end/with_serve_test_runner.py
+++ b/test/end-to-end/with_serve_test_runner.py
@@ -210,12 +210,14 @@ SERVE_ADDRESS = get_remote_execution_address(serve_info)
# run the actual test
-ENV = dict(os.environ,
- TEST_TMPDIR=TEMP_DIR,
- TMPDIR=TEMP_DIR,
- REMOTE_EXECUTION_ADDRESS=g_REMOTE_EXECUTION_ADDRESS,
- SERVE=SERVE_ADDRESS,
- **repos_env)
+ENV = dict(
+ os.environ,
+ TEST_TMPDIR=TEMP_DIR,
+ TMPDIR=TEMP_DIR,
+ REMOTE_EXECUTION_ADDRESS=g_REMOTE_EXECUTION_ADDRESS,
+ SERVE=SERVE_ADDRESS,
+ SERVE_LBR=SERVE_LBR, # expose the serve build root to the test env
+ **repos_env)
if "COMPATIBLE" in ENV:
del ENV["COMPATIBLE"]