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 <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10976
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Krzysztof Karas 2022-01-05 12:36:10 +00:00 committed by Jim Harris
parent 89f253dd20
commit 39b7e10fd4

View File

@ -59,13 +59,13 @@ hotplug_pid=$!
trap 'killprocess $hotplug_pid; exit 1' SIGINT SIGTERM EXIT trap 'killprocess $hotplug_pid; exit 1' SIGINT SIGTERM EXIT
i=0 i=0
while ! grep "Starting I/O" log.txt; do while ! grep "Starting I/O" $testdir/log.txt; do
[ $i -lt 20 ] || break [ $i -lt 20 ] || break
i=$((i + 1)) i=$((i + 1))
sleep 1 sleep 1
done done
if ! grep "Starting I/O" log.txt; then if ! grep "Starting I/O" $testdir/log.txt; then
return 1 return 1
fi fi