@@ -26,9 +26,13 @@ export SUCCESS_MARKER MOCK_REQUEST_LOG
|
26 | 26 | |
27 | 27 | mock_pid="" |
28 | 28 | gateway_pid="" |
| 29 | +media_root="" |
29 | 30 | cleanup() { |
30 | 31 | openclaw_e2e_terminate_gateways "${gateway_pid:-}" |
31 | 32 | openclaw_e2e_stop_process "${mock_pid:-}" |
| 33 | +if [ -n "${media_root:-}" ]; then |
| 34 | + rm -rf "$media_root" |
| 35 | +fi |
32 | 36 | } |
33 | 37 | trap cleanup EXIT |
34 | 38 | |
@@ -111,11 +115,12 @@ openclaw plugins list --json >/tmp/openclaw-release-media-memory-plugins.json \
|
111 | 115 | node scripts/e2e/lib/release-scenarios/assertions.mjs assert-file-contains /tmp/openclaw-release-media-memory-plugins.json memory-core |
112 | 116 | node scripts/e2e/lib/release-scenarios/assertions.mjs configure-mock-openai "$MOCK_PORT" |
113 | 117 | |
114 | | -mkdir -p "$OPENCLAW_STATE_DIR/workspace/memory" /tmp/openclaw-release-media-memory |
115 | | -printf '%s' 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+yf7kAAAAASUVORK5CYII=' | base64 -d > /tmp/openclaw-release-media-memory/input.png |
| 118 | +mkdir -p "$OPENCLAW_STATE_DIR/workspace/memory" |
| 119 | +media_root="$(mktemp -d /tmp/openclaw-release-media-memory.XXXXXX)" |
| 120 | +printf '%s' 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+yf7kAAAAASUVORK5CYII=' | base64 -d >"$media_root/input.png" |
116 | 121 | |
117 | 122 | openclaw infer image describe \ |
118 | | - --file /tmp/openclaw-release-media-memory/input.png \ |
| 123 | + --file "$media_root/input.png" \ |
119 | 124 | --model openai/gpt-5.5 \ |
120 | 125 | --prompt "Describe this image and return marker $SUCCESS_MARKER" \ |
121 | 126 | --json >/tmp/openclaw-release-media-memory-describe.json 2>/tmp/openclaw-release-media-memory-describe.stderr.log |
@@ -124,7 +129,7 @@ node scripts/e2e/lib/release-scenarios/assertions.mjs assert-image-describe /tmp
|
124 | 129 | openclaw infer image generate \ |
125 | 130 | --model openai/gpt-image-1 \ |
126 | 131 | --prompt "Generate a tiny test image for $SUCCESS_MARKER" \ |
127 | | - --output /tmp/openclaw-release-media-memory/generated.png \ |
| 132 | + --output "$media_root/generated.png" \ |
128 | 133 | --json >/tmp/openclaw-release-media-memory-generate.json 2>/tmp/openclaw-release-media-memory-generate.stderr.log |
129 | 134 | node scripts/e2e/lib/release-scenarios/assertions.mjs assert-image-generate /tmp/openclaw-release-media-memory-generate.json "$MOCK_REQUEST_LOG" |
130 | 135 | |
|