Skip to content

Commit

Permalink
dt/rp: Adds extra CLI args to RedpandaService.start_redpanda
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman committed Aug 24, 2024
1 parent cc84de8 commit d402f37
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -2905,7 +2905,7 @@ def write_tls_certs(self):
self._audit_log_config.truststore_file = RedpandaService.TLS_CA_CRT_FILE
self._audit_log_config.crl_file = RedpandaService.TLS_CA_CRL_FILE

def start_redpanda(self, node):
def start_redpanda(self, node, extra_cli: list[str] = []):
preamble, res_args = self._resource_settings.to_cli(
dedicated_node=self._dedicated_nodes)

Expand All @@ -2927,6 +2927,7 @@ def start_redpanda(self, node):
" --abort-on-seastar-bad-alloc "
" --dump-memory-diagnostics-on-alloc-failure-kind=all "
f" {res_args} "
f" {' '.join(extra_cli)}"
f" >> {RedpandaService.STDOUT_STDERR_CAPTURE} 2>&1 &")

node.account.ssh(cmd)
Expand Down Expand Up @@ -3063,7 +3064,8 @@ def start_node(self,
auto_assign_node_id: bool = False,
omit_seeds_on_idx_one: bool = True,
skip_readiness_check: bool = False,
node_id_override: int | None = None):
node_id_override: int | None = None,
extra_cli: list[str] = []):
"""
Start a single instance of redpanda. This function will not return until
redpanda appears to have started successfully. If redpanda does not
Expand Down Expand Up @@ -3099,7 +3101,7 @@ def start_node(self,
)

def start_rp():
self.start_redpanda(node)
self.start_redpanda(node, extra_cli=extra_cli)

if expect_fail:
wait_until(
Expand Down

0 comments on commit d402f37

Please sign in to comment.