Skip to content

Commit

Permalink
Fix mix output for mgrctl by using option -t (#9637)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 authored Jan 16, 2025
1 parent 4553998 commit ba191cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/features/support/remote_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def scp_download(remote_path, local_path, host: @full_hostname)
# @param verbose [Boolean] Whether to log the output of the command in case of success.
# @return [Array<String, String, Integer>] The output, error, and exit code.
def run(cmd, runs_in_container: true, separated_results: false, check_errors: true, timeout: DEFAULT_TIMEOUT, successcodes: [0], buffer_size: 65_536, verbose: false)
cmd_prefixed = @has_mgrctl && runs_in_container ? "mgrctl exec -i '#{cmd.gsub('\'', '\'"\'"\'')}'" : cmd
cmd_prefixed = @has_mgrctl && runs_in_container ? "mgrctl exec -it '#{cmd.gsub('\'', '\'"\'"\'')}'" : cmd
run_local(cmd_prefixed, separated_results: separated_results, check_errors: check_errors, timeout: timeout, successcodes: successcodes, buffer_size: buffer_size, verbose: verbose)
end

Expand Down

0 comments on commit ba191cd

Please sign in to comment.