fix(e2e): bound plugin binding docker smoke · openclaw/openclaw@b36fa1d
vincentkoc
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,6 +9,7 @@ source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"
|
9 | 9 | |
10 | 10 | IMAGE_NAME="${OPENCLAW_PLUGIN_BINDING_COMMAND_ESCAPE_E2E_IMAGE:-openclaw-plugin-binding-command-escape-e2e}" |
11 | 11 | CONTAINER_NAME="openclaw-plugin-binding-command-escape-e2e-$$" |
| 12 | +DOCKER_RUN_TIMEOUT="${OPENCLAW_PLUGIN_BINDING_COMMAND_ESCAPE_DOCKER_RUN_TIMEOUT:-900s}" |
12 | 13 | RUN_LOG="$(mktemp -t openclaw-plugin-binding-command-escape-log.XXXXXX)" |
13 | 14 | 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" |
14 | 15 | |
@@ -26,7 +27,7 @@ docker_e2e_build_or_reuse \
|
26 | 27 | |
27 | 28 | echo "Running plugin binding command escape Docker E2E..." |
28 | 29 | set +e |
29 | | -docker_e2e_docker_run_cmd run --rm \ |
| 30 | +DOCKER_COMMAND_TIMEOUT="$DOCKER_RUN_TIMEOUT" docker_e2e_docker_run_cmd run --rm \ |
30 | 31 | --name "$CONTAINER_NAME" \ |
31 | 32 | -e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \ |
32 | 33 | -e "FOCUSED_TEST_REGEX=$FOCUSED_TEST_REGEX" \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1043,7 +1043,12 @@ test -f "$TMPDIR/docker-cmd-seen"
|
1043 | 1043 | |
1044 | 1044 | expect(runner).toContain("--reporter=verbose -t"); |
1045 | 1045 | 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 | +); |
1047 | 1052 | expect(runner).toContain('docker_e2e_docker_cmd rm -f "$CONTAINER_NAME"'); |
1048 | 1053 | expect(runner).not.toMatch(/(^|\n)docker run --rm/u); |
1049 | 1054 | expect(runner).toContain("expected focused Vitest summary for exactly 3 passed tests"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。