Skip to content

Commit b36fa1d

Browse files
committed
fix(e2e): bound plugin binding docker smoke
1 parent c0641eb commit b36fa1d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎scripts/e2e/plugin-binding-command-escape-docker.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"
99

1010
IMAGE_NAME="${OPENCLAW_PLUGIN_BINDING_COMMAND_ESCAPE_E2E_IMAGE:-openclaw-plugin-binding-command-escape-e2e}"
1111
CONTAINER_NAME="openclaw-plugin-binding-command-escape-e2e-$$"
12+
DOCKER_RUN_TIMEOUT="${OPENCLAW_PLUGIN_BINDING_COMMAND_ESCAPE_DOCKER_RUN_TIMEOUT:-900s}"
1213
RUN_LOG="$(mktemp -t openclaw-plugin-binding-command-escape-log.XXXXXX)"
1314
FOCUSED_TEST_REGEX="lets authorized plugin-owned binding commands fall through to command processing|keeps authorized unknown slash text in a plugin-owned binding routed to the bound plugin|keeps unauthorized plugin-owned binding slash text routed to the bound plugin"
1415

@@ -26,7 +27,7 @@ docker_e2e_build_or_reuse \
2627

2728
echo "Running plugin binding command escape Docker E2E..."
2829
set +e
29-
docker_e2e_docker_run_cmd run --rm \
30+
DOCKER_COMMAND_TIMEOUT="$DOCKER_RUN_TIMEOUT" docker_e2e_docker_run_cmd run --rm \
3031
--name "$CONTAINER_NAME" \
3132
-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \
3233
-e "FOCUSED_TEST_REGEX=$FOCUSED_TEST_REGEX" \

‎test/scripts/docker-build-helper.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,12 @@ test -f "$TMPDIR/docker-cmd-seen"
10431043

10441044
expect(runner).toContain("--reporter=verbose -t");
10451045
expect(runner).not.toContain("-- --reporter=verbose");
1046-
expect(runner).toContain("docker_e2e_docker_run_cmd run --rm");
1046+
expect(runner).toContain(
1047+
'DOCKER_RUN_TIMEOUT="${OPENCLAW_PLUGIN_BINDING_COMMAND_ESCAPE_DOCKER_RUN_TIMEOUT:-900s}"',
1048+
);
1049+
expect(runner).toContain(
1050+
'DOCKER_COMMAND_TIMEOUT="$DOCKER_RUN_TIMEOUT" docker_e2e_docker_run_cmd run --rm',
1051+
);
10471052
expect(runner).toContain('docker_e2e_docker_cmd rm -f "$CONTAINER_NAME"');
10481053
expect(runner).not.toMatch(/(^|\n)docker run --rm/u);
10491054
expect(runner).toContain("expected focused Vitest summary for exactly 3 passed tests");

0 commit comments

Comments
 (0)