Skip to content

Commit

Permalink
Line buffer standard output to allow testing on current logs
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Jul 3, 2024
1 parent 21de9f9 commit e0d3a1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/wifi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func TestAllClustersAppWiFi(t *testing.T) {
})

t.Run("Control", func(t *testing.T) {
// stdbuf --output=L sets the output stream to line buffered
stdout, _, _ := utils.Exec(t, "stdbuf --output=L sudo chip-tool onoff toggle 110 1 2>&1")

writeLogFile(t, "chip-tool-onoff", []byte(stdout))

Expand Down

0 comments on commit e0d3a1e

Please sign in to comment.