public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Li Zhijian <lizhijian@fujitsu.com>
To: linux-block@vger.kernel.org
Cc: shinichiro.kawasaki@wdc.com, linux-rdma@vger.kernel.org,
	Li Zhijian <lizhijian@fujitsu.com>
Subject: [PATCH blktests v2 2/2] [NOT-FOR-MERGE] just for testing
Date: Wed, 25 Dec 2024 17:37:51 +0800	[thread overview]
Message-ID: <20241225093751.307267-2-lizhijian@fujitsu.com> (raw)
In-Reply-To: <20241225093751.307267-1-lizhijian@fujitsu.com>

Hi, Shin'ichiro

All your comments has been addressed except the success ratio one. Could
you help to check this patch([NOT-FOR-MERGE] just for testing) that can tell
where it fails at in your envrionment.

I tested it today in my QEMU enviroment, It almost 100% success

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
---
 tests/rnbd/001 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/rnbd/001 b/tests/rnbd/001
index ef8dff93a94a..9c6d56e3ee98 100755
--- a/tests/rnbd/001
+++ b/tests/rnbd/001
@@ -28,13 +28,20 @@ test_start_stop()
 
 	for ((i=0;i<100;i++))
 	do
-		_start_rnbd_client "${loop_dev}" &>/dev/null &&
-		_stop_rnbd_client &>/dev/null && ((j++))
+		if _start_rnbd_client "${loop_dev}" &>/dev/null; then
+			echo 'connect ok'
+			_stop_rnbd_client &>/dev/null && echo 'disconnect ok' || echo 'disconnect not ok'
+			((j++))
+		else
+			echo 'connect not ok'
+		fi
 	done
 
 	# We expect at least 10% start/stop successfully
 	if [[ $j -lt 10 ]]; then
 		echo "Failed: $j/$i"
+	else
+		echo "Success: $j/$i"
 	fi
 
 	_cleanup_rnbd
-- 
2.47.0


  reply	other threads:[~2024-12-25  9:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25  9:37 [PATCH blktests v2 1/2] tests/rnbd: Implement RNBD regression test Li Zhijian
2024-12-25  9:37 ` Li Zhijian [this message]
2024-12-26 13:17   ` [PATCH blktests v2 2/2] [NOT-FOR-MERGE] just for testing Shinichiro Kawasaki
2024-12-27  1:33     ` Zhijian Li (Fujitsu)
2024-12-27  5:37     ` Zhijian Li (Fujitsu)
2024-12-27  9:23       ` Zhu Yanjun
2024-12-27 11:25         ` Zhu Yanjun
2024-12-30  2:02           ` Zhijian Li (Fujitsu)

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=20241225093751.307267-2-lizhijian@fujitsu.com \
    --to=lizhijian@fujitsu.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --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