hw_hotplug.sh: add -q option to grep to generate fewer logs
Change-Id: I24ab10a3021d52e71bb20cd2cdf748fa8713339c Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14523 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
a2327b080d
commit
40cb3961ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user