Skip to content

Commit

Permalink
Switch to unbuffered
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Jul 3, 2024
1 parent f229b90 commit f5b9cb1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/wifi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ 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))
// stdbuf --output=0 sets the output stream to unbuffered
stdout, _, _ := utils.Exec(t, "stdbuf --output=0 sudo chip-tool onoff toggle 110 1 2>&1")
writeLogFile(t, "chip-tool-toggle", []byte(stdout))

utils.WaitForLogMessage(t,
allClustersSnap, "Toggle ep1 on/off", start)
Expand Down

0 comments on commit f5b9cb1

Please sign in to comment.