()
| 166 | } |
| 167 | |
| 168 | func (e *CLITest) getLogOutputPrefix() (string, bool) { |
| 169 | e.logMu.RLock() |
| 170 | defer e.logMu.RUnlock() |
| 171 | |
| 172 | return e.logOutputPrefix, os.Getenv("KOPIA_TEST_LOG_OUTPUT") != "" || e.logOutputEnabled |
| 173 | } |
| 174 | |
| 175 | // RunAndProcessStderr runs the given command, and streams its stderr line-by-line to stderrCallback until it returns false. |
| 176 | func (e *CLITest) RunAndProcessStderr(tb testing.TB, stderrCallback func(line string) bool, args ...string) (wait func() error, kill func()) { |
no outgoing calls
no test coverage detected