We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 110daa1 commit 8fc631cCopy full SHA for 8fc631c
lib/arduino_ci/arduino_cmd.rb
@@ -56,7 +56,18 @@ def prefs
56
def run(*args, **kwargs)
57
full_args = [@installation.cmd_path] + args
58
@display_mgr.run(*full_args, **kwargs)
59
+ end
60
61
+ def run_with_gui_guess(message, *args, **kwargs)
62
+ # On Travis CI, we get an error message in the GUI instead of on STDERR
63
+ # so, assume that if we don't get a rapid reply that things are not installed
64
+ x3 = @prefs_response_time * 3
65
+ Timeout.timeout(x3) do
66
+ run(*args, **kwargs)
67
68
+ rescue Timeout::Error
69
+ puts "No response in #{x3} seconds. Assuming graphical modal error message#{message}."
70
+ false
71
end
72
73
# run a command and capture its output
0 commit comments