Function rerun::forced_sink_path

source ·
pub fn forced_sink_path() -> Option<String>
Expand description

Returns path for force sink if private environment variable _RERUN_TEST_FORCE_SAVE is set

Newly created RecordingStreams should use a crate::sink::FileSink pointing to this path. Furthermore, RecordingStream::set_sink calls after this should not swap out to a new sink but re-use the existing one. Note that creating a new crate::sink::FileSink to the same file path (even temporarily) can cause a race between file creation (and thus clearing) and pending file writes.