lib/grntest/executors/standard-io-executor.rb in grntest-1.3.5 vs lib/grntest/executors/standard-io-executor.rb in grntest-1.3.6
- old
+ new
@@ -55,10 +55,13 @@
def read_output(command)
options = {}
if may_slow_command?(command)
options[:first_timeout] = @long_read_timeout
end
+ if may_stream_output_command?(command)
+ options[:stream_output] = true
+ end
read_all_readable_content(@output, options)
end
MAY_SLOW_COMMANDS = [
"column_create",
@@ -67,9 +70,17 @@
"plugin_register",
"register",
]
def may_slow_command?(command)
MAY_SLOW_COMMANDS.include?(command.name)
+ end
+
+ MAY_STREAM_OUTPUT_COMMANDS = [
+ "dump",
+ "logical_range_filter",
+ ]
+ def may_stream_output_command?(command)
+ MAY_STREAM_OUTPUT_COMMANDS.include?(command.name)
end
end
end
end