[PATCH blktests v2 2/2] [NOT-FOR-MERGE] just for testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux