From 40cb3961eca8cea9be6de1894fc1f58288d89375 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Thu, 15 Sep 2022 13:47:02 +0200 Subject: [PATCH] hw_hotplug.sh: add -q option to grep to generate fewer logs Change-Id: I24ab10a3021d52e71bb20cd2cdf748fa8713339c Signed-off-by: Krzysztof Karas Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14523 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Karol Latecki --- test/nvme/hw_hotplug.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/nvme/hw_hotplug.sh b/test/nvme/hw_hotplug.sh index 373f25d49..07bcc4bc2 100755 --- a/test/nvme/hw_hotplug.sh +++ b/test/nvme/hw_hotplug.sh @@ -70,13 +70,13 @@ hotplug_pid=$! trap 'killprocess $hotplug_pid; restore_device; rm $testdir/log.txt; exit 1' SIGINT SIGTERM EXIT i=0 -while ! grep "Starting I/O" $testdir/log.txt; do +while ! grep -q "Starting I/O" $testdir/log.txt; do [ $i -lt 20 ] || break i=$((i + 1)) sleep 1 done -if ! grep "Starting I/O" $testdir/log.txt; then +if ! grep -q "Starting I/O" $testdir/log.txt; then rm $testdir/log.txt exit 1 fi