Unverified Commit 8b52e804 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

[skip-changelog] testsuite: arduino-cli should never panic during tests (#1873)

parent c2bf7180
......@@ -161,7 +161,10 @@ func (cli *ArduinoCLI) Run(args ...string) ([]byte, []byte, error) {
cliErr := cliProc.Wait()
fmt.Println(color.HiBlackString("<<< Run completed (err = %v)", cliErr))
return stdoutBuf.Bytes(), stderrBuf.Bytes(), cliErr
errBuf := stderrBuf.Bytes()
cli.t.NotContains(string(errBuf), "panic: runtime error:", "arduino-cli panicked")
return stdoutBuf.Bytes(), errBuf, cliErr
}
// StartDaemon starts the Arduino CLI daemon. It returns the address of the daemon.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment