Move all output through StatusOutput
Write log output through StatusOutput so that the status implementation can synchronize it with its own output. Test: status_test.go Change-Id: I917bdeeea4759a12b6b4aa6d6d86ee18a2771723
This commit is contained in:
@@ -27,6 +27,11 @@ func (c *counterOutput) FinishAction(result ActionResult, counts Counts) {
|
||||
func (c counterOutput) Message(level MsgLevel, msg string) {}
|
||||
func (c counterOutput) Flush() {}
|
||||
|
||||
func (c counterOutput) Write(p []byte) (int, error) {
|
||||
// Discard writes
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
func (c counterOutput) Expect(t *testing.T, counts Counts) {
|
||||
if Counts(c) == counts {
|
||||
return
|
||||
|
Reference in New Issue
Block a user