Skip to content

Commit 8b52e80

Browse files
authored
[skip-changelog] testsuite: arduino-cli should never panic during tests (#1873)
1 parent c2bf718 commit 8b52e80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/integrationtest/arduino-cli.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ func (cli *ArduinoCLI) Run(args ...string) ([]byte, []byte, error) {
161161
cliErr := cliProc.Wait()
162162
fmt.Println(color.HiBlackString("<<< Run completed (err = %v)", cliErr))
163163

164-
return stdoutBuf.Bytes(), stderrBuf.Bytes(), cliErr
164+
errBuf := stderrBuf.Bytes()
165+
cli.t.NotContains(string(errBuf), "panic: runtime error:", "arduino-cli panicked")
166+
167+
return stdoutBuf.Bytes(), errBuf, cliErr
165168
}
166169

167170
// StartDaemon starts the Arduino CLI daemon. It returns the address of the daemon.

0 commit comments

Comments
 (0)