mirror of
https://github.com/rizsotto/Bear.git
synced 2026-05-28 00:20:45 +02:00
ae2493d5ec
Collapse the integration-test verbosity controls onto a single inherited RUST_LOG. run_bear no longer forces RUST_LOG=debug; it inherits the test-process value, defaulting to info when unset -- this keeps warn/info/error log lines in captured stderr (so tests that assert on them still work) while filtering the per-event debug traces from the preload library that ccache was caching and replaying through Command::status() leaks. CI sets RUST_LOG=debug explicitly for full per-event traces on platforms that can't be reproduced locally. Drop::preserve_on_panic now dumps the last captured BearOutput unconditionally; cargo's per-test capture handles the show-on- failure filter for both Err returns and panics. The verbose-gated inline debug-info blocks in CompilationDatabase / InterceptEvents assertion methods, the new_with_verbose constructor, the verbose: macro arm of bear_test!, and all the show_verbose_if_enabled / force_show_verbose / show_last_bear_output helpers are gone. BEAR_TEST_PRESERVE_FAILURES stays unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>