We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2b35f commit d0c3bbfCopy full SHA for d0c3bbf
lib/arduino_ci/arduino_cmd.rb
@@ -76,7 +76,13 @@ def run_and_capture(*args)
76
end
77
78
def board_installed?(board)
79
- run("--board", board)
+ # On Travis CI, we get an error message in the GUI instead of on STDERR
80
+ # so, assume that if we don't get a rapid reply that things are not installed
81
+ Timeout.timeout(@prefs_response_time * 3) do
82
+ run("--board", board)
83
+ end
84
+ rescue Timeout::Error
85
+ false
86
87
88
0 commit comments