Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Damien Le Moal <damien.lemoal@wdc.com>,
	fio@vger.kernel.org, Jens Axboe <axboe@kernel.dk>
Cc: Matias Bjorling <matias.bjorling@wdc.com>,
	Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
	Dmitry Fomichev <dmitry.fomichev@wdc.com>
Subject: Re: [PATCH 4/8] t/zbd: Fix test 2 and 3 result handling
Date: Wed, 20 Feb 2019 08:06:12 -0800	[thread overview]
Message-ID: <1550678772.93548.23.camel@acm.org> (raw)
In-Reply-To: <20190220071725.8487-5-damien.lemoal@wdc.com>

On Wed, 2019-02-20 at 16:17 +0900, Damien Le Moal wrote:
> Removal of the message "No I/O performed" when fio does not execute any
> I/O broke zbd tests 2 and 3 as this message is looked after to test for
> success. Fix this by looking for a "Run status" line starting with
> "WRITE:" for test 2 and "READ:" for test 3. The run status lines are not
> printed when no I/O is performed. Testing for the absence of these
> strings thus allows to easily test if I/Os where executed or not.
> 
> Fixes: ff3aa922570c ("Kill "No I/O performed by ..." message")
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
> ---
>  t/zbd/test-zbd-support | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support
> index d316d880..c6391169 100755
> --- a/t/zbd/test-zbd-support
> +++ b/t/zbd/test-zbd-support
> @@ -141,9 +141,9 @@ test2() {
>      if [ -z "$is_zbd" ]; then
>  	opts+=("--zonesize=${zone_size}")
>      fi
> -    run_fio "${opts[@]}" 2>&1 |
> -	tee -a "${logfile}.${test_number}" |
> -	grep -q 'No I/O performed'
> +    run_fio "${opts[@]}" >> "${logfile}.${test_number}" 2>&1 || return $?
> +    grep -q 'WRITE:' "${logfile}.${test_number}"
> +    [ $? != 0 ]
>  }

Can the last two lines be changed into the following single line?

! grep -q 'WRITE:' "${logfile}.${test_number}"

Thanks,

Bart.


  reply	other threads:[~2019-02-20 16:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20  7:17 [PATCH 0/8] ZBD support fixes Damien Le Moal
2019-02-20  7:17 ` [PATCH 1/8] zbd: Fix partition block device handling Damien Le Moal
2019-02-20 16:00   ` Bart Van Assche
2019-02-21  1:47     ` Damien Le Moal
2019-02-20  7:17 ` [PATCH 2/8] sg: Avoid READ CAPACITY failures Damien Le Moal
2019-02-20 16:03   ` Bart Van Assche
2019-02-20  7:17 ` [PATCH 3/8] t/zbd: Fix handling of partition devices Damien Le Moal
2019-02-20  7:17 ` [PATCH 4/8] t/zbd: Fix test 2 and 3 result handling Damien Le Moal
2019-02-20 16:06   ` Bart Van Assche [this message]
2019-02-20  7:17 ` [PATCH 5/8] t/zbd: Default to using blkzone tool Damien Le Moal
2019-02-20  7:17 ` [PATCH 6/8] zbd: Fix zone locking for async I/O engines Damien Le Moal
2019-02-20  7:17 ` [PATCH 7/8] zbd: Avoid async I/O multi-job workload deadlock Damien Le Moal
2019-02-20  7:17 ` [PATCH 8/8] t/zbd: Add multi-job libaio test Damien Le Moal

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=1550678772.93548.23.camel@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --cc=damien.lemoal@wdc.com \
    --cc=dmitry.fomichev@wdc.com \
    --cc=fio@vger.kernel.org \
    --cc=matias.bjorling@wdc.com \
    --cc=shinichiro.kawasaki@wdc.com \
    /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