Skip to content

fix: simplify CLI test helper + propagate exit codes (supersedes #352)#373

Merged
buildingjoshbetter merged 1 commit into
mainfrom
fix/cli-helper-exit-codes
May 22, 2026
Merged

fix: simplify CLI test helper + propagate exit codes (supersedes #352)#373
buildingjoshbetter merged 1 commit into
mainfrom
fix/cli-helper-exit-codes

Conversation

@buildingjoshbetter
Copy link
Copy Markdown
Owner

Summary

  1. tests/test_cli_help.py: Remove shutil.which two-arm helper, always use python -m (avoids Windows Defender ASR block)
  2. truememory/mcp_server.py: main()sys.exit(main() or 0) in __main__ block

2 files, -16 net lines. Clean rewrite of Hunter's #352. Supersedes #352.

Co-Authored-By: Huntehhh hunter@users.noreply.github.com

1. test_cli_help.py: Remove two-arm shutil.which helper that preferred
   the ASR-blocked shim. Always use python -m for reliability.

2. mcp_server.py: __main__ block now uses sys.exit(main() or 0) so
   exit codes propagate under python -m invocation.

Based on Huntehhh's PR #352. Supersedes #352.

Co-Authored-By: Huntehhh <hunter@users.noreply.github.com>
@buildingjoshbetter buildingjoshbetter merged commit 9d0e881 into main May 22, 2026
6 of 18 checks passed
@buildingjoshbetter buildingjoshbetter deleted the fix/cli-helper-exit-codes branch May 22, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant