Skip to content

Commit 645e3be

Browse files
committed
fix: address PR review comments for E2E harness
1 parent a6cd518 commit 645e3be

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

scripts/e2e/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import os
77
import random
8+
import shlex
89
import shutil
910
import socket
1011
import string
@@ -38,7 +39,7 @@ def run_cmd(
3839
timeout=timeout,
3940
)
4041
if check and result.returncode != 0:
41-
cmd = ' '.join(args)
42+
cmd = shlex.join(args)
4243
raise RuntimeError(
4344
f'Command failed ({result.returncode}): {cmd}\nstdout:\n{result.stdout}\nstderr:\n{result.stderr}'
4445
)

scripts/e2e/github_two_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def parse_gh_scopes() -> set[str]:
361361

362362
def preflight(real_home: Path) -> tuple[str, str]:
363363
print_banner('Preflight')
364-
require_commands(['opencode', 'gh', 'git', 'bun', 'python3'])
364+
require_commands(['opencode', 'gh', 'git', 'bun', 'python3', 'pgrep'])
365365
scopes = parse_gh_scopes()
366366
required_scopes = {'repo', 'delete_repo'}
367367
missing_scopes = sorted(required_scopes - scopes)

src/command/sync-init.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
description: Initialize opencode-synced configuration
33
---
44

5-
You MUST call the `opencode_sync` tool with `command=\"init\"`.
5+
You MUST call the `opencode_sync` tool with `command="init"`.
66
Do not answer with plain text only.
77

88
Argument handling:
9-
- If `$ARGUMENTS` is non-empty, pass `repo=\"$ARGUMENTS\"`.
9+
- If `$ARGUMENTS` is non-empty, pass `repo="$ARGUMENTS"`.
1010
- If `$ARGUMENTS` is empty, let the tool choose defaults.
1111

1212
Rules:

src/command/sync-link.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
description: Link this computer to an existing sync repo
33
---
44

5-
You MUST call the `opencode_sync` tool with `command=\"link\"`.
5+
You MUST call the `opencode_sync` tool with `command="link"`.
66
Do not answer with plain text only.
77

88
Argument handling:
9-
- If `$ARGUMENTS` is non-empty, pass `repo=\"$ARGUMENTS\"`.
9+
- If `$ARGUMENTS` is non-empty, pass `repo="$ARGUMENTS"`.
1010
- If `$ARGUMENTS` is empty, let the tool auto-discover.
1111

1212
Reminder:

0 commit comments

Comments
 (0)