public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 3/3] Add test for NFS directory listing regression
Date: Wed, 24 Nov 2021 10:50:56 +0100	[thread overview]
Message-ID: <YZ4LAN2RrJntGlFq@pevik> (raw)
In-Reply-To: <9d0f2161-4c10-6318-5a15-470cc12fe76c@suse.cz>

Hi Martin,

> > -	echo "-n x    Create x files and x directories, default is 5000"
> > +	echo "-n x    Create x files and x directories, default is $FILE_COUNT"
> >  }

> If you run `nfs07.sh -hn 123`, your version will print that the default
> is 123.

Out of curiosity (as it's not anything important) not sure what's wrong on my
side (I tested it before I suggested it, I also reinstalled LTP to make sure
it's updated), but it works as expected:

# PATH="/opt/ltp/testcases/bin:$PATH" ./nfs07.sh -hn 123
nfs07 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
nfs07 1 TINFO: add local addr 10.0.0.2/24
nfs07 1 TINFO: add local addr fd00:1:1:1::2/64
nfs07 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
nfs07 1 TINFO: add remote addr 10.0.0.1/24
nfs07 1 TINFO: add remote addr fd00:1:1:1::1/64
nfs07 1 TINFO: Network config (local -- remote):
nfs07 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1
nfs07 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24
nfs07 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64
-t x    Socket type, tcp or udp, default is udp
-v x    NFS version, default is '3'
-n x    Create x files and x directories, default is 5000
-h      Prints this help
-i n    Execute test n times

> >  do_setup()
> > @@ -45,7 +45,7 @@ do_test()
> >  {
> >  	local count

> > -	# Pass the list of files through `sort -u` in case `ls` doesn't fitler
> > +	# Pass the list of files through `sort -u` in case `ls` doesn't filter
> >  	# out potential duplicate filenames returned by buggy NFS
> >  	count=`ls | grep '^file' | sort -u | wc -l`

> > @@ -61,7 +61,7 @@ do_test()
> >  		return
> >  	fi

> > -	tst_res TPASS "All files and directories were correctly listed"
> > +	tst_res TPASS "All $FILE_COUNT files and directories were correctly listed"
> >  }

> That would make the line over 80 characters and the number isn't that
> important. Let's fix just the "fitler" typo.
I don't consider 80 as an issue as long as it's not over 100 chars (barier
increased also in mainline checkpatch.pl), but sure, these are really minor
issues, thus agree to fix just the typo.

Waiting little longer if Alexey has any comments and then merge.

Thanks a lot for very useful test case!

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2021-11-24  9:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 15:15 [LTP] [PATCH v2 1/3] nfs_lib.sh: Add nfs_get_remote_path() Martin Doucha
2021-11-23 15:15 ` [LTP] [PATCH v2 2/3] nfs_lib.sh: Add support for test-specific parameters Martin Doucha
2021-11-23 19:29   ` Petr Vorel
2021-11-23 15:15 ` [LTP] [PATCH v2 3/3] Add test for NFS directory listing regression Martin Doucha
2021-11-23 19:40   ` Petr Vorel
2021-11-24  9:27     ` Martin Doucha
2021-11-24  9:50       ` Petr Vorel [this message]
2021-11-24 10:06         ` Martin Doucha
2021-11-24 10:27           ` Petr Vorel
2021-11-24 14:07         ` Alexey Kodanev
2021-11-24 14:12           ` Martin Doucha
2021-11-25 11:06             ` Petr Vorel
2021-11-25 13:27           ` Petr Vorel
2021-11-23 19:26 ` [LTP] [PATCH v2 1/3] nfs_lib.sh: Add nfs_get_remote_path() Petr Vorel

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=YZ4LAN2RrJntGlFq@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    --cc=mdoucha@suse.cz \
    /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