From 39b7e10fd4c8b2b10718b5ac6252cc7c1809fe58 Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Wed, 5 Jan 2022 12:36:10 +0000 Subject: [PATCH] hw_hotplug.sh: fix the incorrect path to log.txt file This test fails due to incorrect path to log.txt file needed to detect start of hotplug application. The change that introduced the bug: Change-Id: Ia14507a282796ad28f067c086b9112ae6463b654 This change corrects the file path. Change-Id: I5d43c47044f46100fa4ca7b845973c427cae237c Signed-off-by: Krzysztof Karas Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10976 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Dong Yi Reviewed-by: Jim Harris --- 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 a97e135ed2..49c2840be7 100755 --- a/test/nvme/hw_hotplug.sh +++ b/test/nvme/hw_hotplug.sh @@ -59,13 +59,13 @@ hotplug_pid=$! trap 'killprocess $hotplug_pid; exit 1' SIGINT SIGTERM EXIT i=0 -while ! grep "Starting I/O" log.txt; do +while ! grep "Starting I/O" $testdir/log.txt; do [ $i -lt 20 ] || break i=$((i + 1)) sleep 1 done -if ! grep "Starting I/O" log.txt; then +if ! grep "Starting I/O" $testdir/log.txt; then return 1 fi