From f2cafd7e740d960bbc4781bf60f8bd0a89acaaa0 Mon Sep 17 00:00:00 2001 From: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com> Date: Tue, 14 Jul 2026 19:36:00 +0800 Subject: [PATCH] test: honor AgentTeams worker runtime env --- tests/test-02-create-worker.sh | 2 +- tests/test-06-multi-worker.sh | 2 +- tests/test-15-import-worker-zip.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-02-create-worker.sh b/tests/test-02-create-worker.sh index 5e8316fb0..26ef52ad9 100755 --- a/tests/test-02-create-worker.sh +++ b/tests/test-02-create-worker.sh @@ -54,7 +54,7 @@ wait_for_session_stable 5 60 # Snapshot metrics baseline before sending message (to calculate delta later) METRICS_BASELINE=$(snapshot_baseline) -TEST_WORKER_RUNTIME="${HICLAW_DEFAULT_WORKER_RUNTIME:-openclaw}" +TEST_WORKER_RUNTIME="${AGENTTEAMS_DEFAULT_WORKER_RUNTIME:-${HICLAW_DEFAULT_WORKER_RUNTIME:-openclaw}}" # Send create worker request. # diff --git a/tests/test-06-multi-worker.sh b/tests/test-06-multi-worker.sh index e73f77388..5cf58bc4e 100755 --- a/tests/test-06-multi-worker.sh +++ b/tests/test-06-multi-worker.sh @@ -48,7 +48,7 @@ fi # Alice is running from previous tests; bob will be created below (offset=0 is correct for new workers) wait_for_worker_container "alice" 60 METRICS_BASELINE=$(snapshot_baseline "alice" "bob") -TEST_WORKER_RUNTIME="${HICLAW_DEFAULT_WORKER_RUNTIME:-openclaw}" +TEST_WORKER_RUNTIME="${AGENTTEAMS_DEFAULT_WORKER_RUNTIME:-${HICLAW_DEFAULT_WORKER_RUNTIME:-openclaw}}" # worker-management/SKILL.md tells Manager to ask admin for FOUR inputs # (name / runtime / SOUL / skills) before running `hiclaw create worker` # and not to invent defaults. A vague prompt that only names the worker is diff --git a/tests/test-15-import-worker-zip.sh b/tests/test-15-import-worker-zip.sh index aad98506c..b0042f9c9 100644 --- a/tests/test-15-import-worker-zip.sh +++ b/tests/test-15-import-worker-zip.sh @@ -79,7 +79,7 @@ WORK_DIR="/tmp/agentteams-test-${TEST_WORKER}" # defaults to openclaw on the controller side (defaultRuntime("") returns # RuntimeOpenClaw), which makes the "copaw shard" run a hidden openclaw # worker -- defeating the point of the matrix expansion. -TEST_WORKER_RUNTIME="${HICLAW_DEFAULT_WORKER_RUNTIME:-openclaw}" +TEST_WORKER_RUNTIME="${AGENTTEAMS_DEFAULT_WORKER_RUNTIME:-${HICLAW_DEFAULT_WORKER_RUNTIME:-openclaw}}" exec_in_manager bash -c " mkdir -p ${WORK_DIR}/package/config ${WORK_DIR}/package/skills/test-skill