summaryrefslogtreecommitdiff
path: root/tests/codex/test-package-codex-plugin.sh
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-06-30 17:32:44 -0700
committerJesse Vincent <jesse@primeradiant.com>2026-07-02 14:53:00 -0700
commit4ecbbcd0b4573963b550858a030bf503793b2cab (patch)
treea633c30637e4183a1f1a07ed29e748e2d00a3042 /tests/codex/test-package-codex-plugin.sh
parent53106e6536bb0364074d7eab3e69b1ccb2580319 (diff)
Strip hooks from Codex portal package
Diffstat (limited to 'tests/codex/test-package-codex-plugin.sh')
-rwxr-xr-xtests/codex/test-package-codex-plugin.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/codex/test-package-codex-plugin.sh b/tests/codex/test-package-codex-plugin.sh
index d608674..3a3d715 100755
--- a/tests/codex/test-package-codex-plugin.sh
+++ b/tests/codex/test-package-codex-plugin.sh
@@ -140,6 +140,9 @@ extracted="$TEST_ROOT/extracted"
tar_extracted="$TEST_ROOT/tar-extracted"
write_metadata_fixture "$metadata_source"
+source_hooks="$(python3 -c 'import json; print(json.load(open("'"$REPO_ROOT"'/.codex-plugin/plugin.json")).get("hooks"))')"
+assert_equals "$source_hooks" "{}" "source Codex manifest suppresses local hook auto-discovery"
+
if output="$("$SCRIPT_UNDER_TEST" --allow-dirty --metadata-source "$metadata_source" --output "$archive" 2>&1)"; then
pass "package script exits successfully"
else