Skip to content

Commit 5c0024e

Browse files
fix: replace stale NEXT: grep with RUN: in validate-phase.sh (2731-c62d) (merge worktree-20260324-091358)
2 parents 21e993f + 4aa002c commit 5c0024e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

plugins/dso/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dso",
3-
"version": "0.25.14",
3+
"version": "0.25.15",
44
"description": "Workflow infrastructure plugin for Claude Code projects",
55
"commands": "./commands/",
66
"skills": "./skills/",

plugins/dso/scripts/validate-phase.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ run_check() {
170170

171171
# run_test_batched: time-bounded test runner using test-batched.sh.
172172
# When test-batched.sh is available, delegates test execution to it.
173-
# If test-batched.sh outputs "NEXT:", sets any_fail_ref=2 (pending).
173+
# If test-batched.sh outputs "RUN:", sets any_fail_ref=2 (pending).
174174
# Falls back to direct eval when test-batched.sh is not available.
175175
#
176176
# Usage: run_test_batched <any_fail_ref>
177177
# any_fail_ref — name of the integer variable to set on failure or pending
178178
#
179179
# Outputs a TESTS: PASS / FAIL / PENDING line to stdout.
180-
# Sets $any_fail_ref to 1 on failure, 2 on pending (NEXT: detected).
180+
# Sets $any_fail_ref to 1 on failure, 2 on pending (RUN: detected).
181181
run_test_batched() {
182182
local -n _any_fail="$1"
183183
local batched_script="$VALIDATE_TEST_BATCHED_SCRIPT"
@@ -193,9 +193,9 @@ run_test_batched() {
193193
bash "$batched_script" --timeout="$batched_timeout" "$CMD_TEST_UNIT" 2>&1
194194
) || rc=$?
195195

196-
# Detect partial run: test-batched.sh prints "NEXT:" when time budget exhausted.
196+
# Detect partial run: test-batched.sh prints "RUN:" when time budget exhausted.
197197
# In that case it exits 0, but tests are not done — emit TESTS: PENDING.
198-
if [ "$rc" = "0" ] && echo "$batched_output" | grep -q "^NEXT:"; then
198+
if [ "$rc" = "0" ] && echo "$batched_output" | grep -q "^RUN:"; then
199199
echo "TESTS: PENDING (run validate-phase.sh again to continue)"
200200
_any_fail=2
201201
return

tests/test-validate-phase-portability.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -352,20 +352,20 @@ else
352352
fi
353353

354354
# ---------------------------------------------------------------------------
355-
# Test i: post-batch with NEXT: output from test-batched.sh exits 2 (pending)
355+
# Test i: post-batch with RUN: output from test-batched.sh exits 2 (pending)
356356
# ---------------------------------------------------------------------------
357357
echo ""
358-
echo "Test i: post-batch / NEXT: output from test-batched.sh → exit 2 (dso-qlgq)"
358+
echo "Test i: post-batch / RUN: output from test-batched.sh → exit 2 (dso-qlgq, 2731-c62d)"
359359
write_all_pass_config
360360

361361
STUB_NEXT="$TMPDIR/stub-test-batched-next.sh"
362362
STUB_SENTINEL_I="$TMPDIR/test-batched-called-i"
363363
cat > "$STUB_NEXT" << 'STUB'
364364
#!/usr/bin/env bash
365-
# Stub: simulate a partial (time-bounded) run — emit NEXT: and exit 0
365+
# Stub: simulate a partial (time-bounded) run — emit RUN: and exit 0
366366
touch "$STUB_SENTINEL_PATH"
367367
echo "0/1 tests completed."
368-
echo "NEXT: TEST_BATCHED_STATE_FILE=/tmp/state.json bash /path/to/test-batched.sh 'bash tests/run-all.sh'"
368+
echo "RUN: TEST_BATCHED_STATE_FILE=/tmp/state.json bash /path/to/test-batched.sh 'bash tests/run-all.sh'"
369369
exit 0
370370
STUB
371371
chmod +x "$STUB_NEXT"
@@ -380,15 +380,15 @@ RUN_OUTPUT=$(
380380
) || RUN_EXIT=$?
381381

382382
if [ "$RUN_EXIT" -eq 2 ]; then
383-
pass "post-batch NEXT: pending: exit 2"
383+
pass "post-batch RUN: pending: exit 2"
384384
else
385-
fail "post-batch NEXT: pending: expected exit 2 (pending), got $RUN_EXIT (output: $RUN_OUTPUT)"
385+
fail "post-batch RUN: pending: expected exit 2 (pending), got $RUN_EXIT (output: $RUN_OUTPUT)"
386386
fi
387387

388388
if echo "$RUN_OUTPUT" | grep -q "TESTS: PENDING"; then
389-
pass "post-batch NEXT: pending: output has TESTS: PENDING"
389+
pass "post-batch RUN: pending: output has TESTS: PENDING"
390390
else
391-
fail "post-batch NEXT: pending: output missing TESTS: PENDING (output: $RUN_OUTPUT)"
391+
fail "post-batch RUN: pending: output missing TESTS: PENDING (output: $RUN_OUTPUT)"
392392
fi
393393

394394
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)