From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] lib/test_net.sh: add waiting loop to netload()
Date: Thu, 17 Sep 2015 11:45:52 +0300 [thread overview]
Message-ID: <55FA7DC0.7000206@oracle.com> (raw)
In-Reply-To: <675138819.13128994.1442475711763.JavaMail.zimbra@redhat.com>
Hi,
On 09/17/2015 10:41 AM, Jan Stancek wrote:
>> @@ -282,6 +282,17 @@ tst_netload()
>> tst_resm TINFO "run tcp_fastopen with '$ip_addr', port '$port'"
>> tst_rhost_run -s -b -c "tcp_fastopen -R $max_requests -g $port"
>>
>> + # check that tcp_fastopen on rhost in 'Listening' state
>> + local sec_waited=
>> + for sec_waited in $(seq 1 60); do
>> + tst_rhost_run -c "ss -ln | grep -q $port" && break
> Isn't this too generic match? Can we add "-t" to ss parameters?
> "ss -ln" gives me also unix sockets along with their inode numbers on output,
> which seems they could easily match any port number.
Right, we can use -t option to match only TCP sockets... I'll add it.
Thanks,
Alexey
next prev parent reply other threads:[~2015-09-17 8:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 9:43 [LTP] [PATCH] lib/test_net.sh: add waiting loop to netload() Alexey Kodanev
2015-09-17 7:41 ` Jan Stancek
2015-09-17 8:45 ` Alexey Kodanev [this message]
2015-09-22 9:11 ` Alexey Kodanev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FA7DC0.7000206@oracle.com \
--to=alexey.kodanev@oracle.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox