From 28d1c99c69d2486ea1f739b6b57f205c85dfebae Mon Sep 17 00:00:00 2001 From: nicholasyang Date: Thu, 10 Oct 2024 15:48:08 +0800 Subject: [PATCH] strace getent hosts hanode2 --- test/features/steps/behave_agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/features/steps/behave_agent.py b/test/features/steps/behave_agent.py index d6d6a2fa3..bddaf6de2 100755 --- a/test/features/steps/behave_agent.py +++ b/test/features/steps/behave_agent.py @@ -62,6 +62,7 @@ def call(host: str, port: int, cmdline: str, user: typing.Optional[str] = None): subprocess.run(['ip', 'addr']) subprocess.run(['cat', '/etc/resolv.conf']) subprocess.run(['cat', '/etc/hosts']) + subprocess.run(['strace', 'getent', 'hosts', 'hanode2']) print(f'behave.call({host}, {port})') family, type, proto, _, sockaddr = socket.getaddrinfo(host, port, type=socket.SOCK_STREAM)[0] with socket.socket(family, type, proto) as s: