host01.sh: Allow to overwrite the default hostname
PATCH 1/1 host01.sh: Allow to overwrite the default hostname
Using hostname for test requires DNS setup.
Allow to set hostname (e.g. github.com) via $HOSTNAME in case host not set. This restores the old behavior (the legacy API version used $RHOST).
--- testcases/network/tcp_cmds/host/host01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/network/tcp_cmds/host/host01.sh +1 -1
@@ -12,7 +12,7 @@ TST_NEEDS_CMDS="awk host hostname" do_test() { - local lhost="$(hostname)" + local lhost="${HOSTNAME:-$(hostname)}" local addr tst_res TINFO "test basic functionality of the host command"
Signature · 1 line
2.29.2
PATCH 1/1 host01.sh: Allow to overwrite the default hostname
Quoted 9 lines · Petr Vorel
Using hostname for test requires DNS setup.
Allow to set hostname (e.g. github.com) via $HOSTNAME in case host not set. This restores the old behavior (the legacy API version used $RHOST).Suggested-by Petr Cervinka <[email protected]>Signed-off-by Petr Vorel <[email protected]>--- testcases/network/tcp_cmds/host/host01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 1/1 host01.sh: Allow to overwrite the default hostname
Hi Alexey,
Quoted 5 lines · Petr Vorel
Quoted 3 lines
Using hostname for test requires DNS setup.
Allow to set hostname (e.g. github.com) via $HOSTNAME in case host not set. This restores the old behavior (the legacy API version used $RHOST).
Quoted 7 lines
Quoted 5 lines
Suggested-by Petr Cervinka <[email protected]>Signed-off-by Petr Vorel <[email protected]>--- testcases/network/tcp_cmds/host/host01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Acked-by Alexey Kodanev <[email protected]>
Thanks! Merged.
Kind regards,
Petr