We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2b35f commit fdeda7fCopy full SHA for fdeda7f
lib/arduino_ci/arduino_cmd.rb
@@ -76,7 +76,15 @@ 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
+ x3 = @prefs_response_time * 3
82
+ Timeout.timeout(x3) do
83
+ run("--board", board)
84
+ end
85
+ rescue Timeout::Error
86
+ puts "No response in #{x3} seconds. Assuming graphical modal error message about board not installed."
87
+ false
88
89
90
0 commit comments