Skip to content

Commit

Permalink
strace getent hosts hanode2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 10, 2024
1 parent 5209970 commit 28d1c99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/features/steps/behave_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 28d1c99

Please sign in to comment.