Skip to content

Commit a76f074

Browse files
committed
board_installed? use run_with_gui_guess
1 parent e8a7610 commit a76f074

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/arduino_ci/arduino_cmd.rb

+1-9
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,7 @@ def run_and_capture(*args)
9696
end
9797

9898
def board_installed?(board)
99-
# On Travis CI, we get an error message in the GUI instead of on STDERR
100-
# so, assume that if we don't get a rapid reply that things are not installed
101-
x3 = @prefs_response_time * 3
102-
Timeout.timeout(x3) do
103-
run("--board", board)
104-
end
105-
rescue Timeout::Error
106-
puts "No response in #{x3} seconds. Assuming graphical modal error message about board not installed."
107-
false
99+
run_with_gui_guess(" about board not installed", "--board", board)
108100
end
109101

110102
end

0 commit comments

Comments
 (0)