Correct stderr capture in test_skill_validation.sh

- Fixed Bash redirection bug () that prevented capturing stderr output.
- Replaced with  which correctly captures stderr (since stdout is empty on failure).
- Ensures validation checks for clean error messages and non-zero exit codes work as intended.
This commit is contained in:
2026-05-20 18:12:34 -05:00
parent d8e5027bc0
commit e62d63aa6f
+2 -2
View File
@@ -12,7 +12,7 @@ description: No closing
SKILL
set +e
STDERR_OUTPUT=$("${DRHARNESS}" -D -F dummy.chat 2>&1 >/dev/null)
STDERR_OUTPUT=$("${DRHARNESS}" -D -F dummy.chat 2>&1)
EXIT_CODE=$?
set -e
@@ -45,7 +45,7 @@ This skill has no frontmatter.
SKILL
set +e
STDERR_OUTPUT=$("${DRHARNESS}" -D -F dummy.chat 2>&1 >/dev/null)
STDERR_OUTPUT=$("${DRHARNESS}" -D -F dummy.chat 2>&1)
EXIT_CODE=$?
set -e