Skip to content

Commit

Permalink
run_remote with -t
Browse files Browse the repository at this point in the history
so timedout commands are killed remotely

Skip-build: true

Signed-off-by: Dalton Bohning <dalton.bohning@intel.com>
  • Loading branch information
daltonbohning committed Jul 29, 2024
1 parent b2fc9b2 commit fe932a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tests/ftest/util/run_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ def run_remote(log, hosts, command, verbose=True, timeout=120, task_debug=False,
if fanout is None:
fanout = max(task.info('fanout'), len(os.sched_getaffinity(0)))
task.set_info('fanout', fanout)
# Enable forwarding of the ssh authentication agent connection
task.set_info("ssh_options", "-oForwardAgent=yes")
# Enable forwarding of the ssh authentication agent connection.
# Force pseudo-terminal allocation so timed-out commands are killed remotely.
task.set_info("ssh_options", "-oForwardAgent=yes -q -t -t")
if verbose:
if timeout is None:
log.debug("Running on %s without a timeout: %s", hosts, command)
Expand Down

0 comments on commit fe932a2

Please sign in to comment.