File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def run_and_capture(*args, **kwargs)
88
88
pipe_out , pipe_out_wr = IO . pipe
89
89
pipe_err , pipe_err_wr = IO . pipe
90
90
our_kwargs = { out : pipe_out_wr , err : pipe_err_wr }
91
- eventual_kwargs = kwargs . merge ( our_kwargs )
91
+ eventual_kwargs = our_kwargs . merge ( kwargs )
92
92
success = run ( *args , **eventual_kwargs )
93
93
pipe_out_wr . close
94
94
pipe_err_wr . close
@@ -117,7 +117,8 @@ def board_installed?(boardname)
117
117
# @param name [String] the board name
118
118
# @return [bool] whether the command succeeded
119
119
def install_board ( boardname )
120
- run_and_capture ( "--install-boards" , boardname ) [ :success ]
120
+ # TODO: find out why IO.pipe fails but File::NULL succeeds :(
121
+ run_and_capture ( "--install-boards" , boardname , out : File ::NULL ) [ :success ]
121
122
end
122
123
123
124
# install a library by name
You can’t perform that action at this time.
0 commit comments