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:
parent
89f253dd20
commit
39b7e10fd4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user