Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: usbip: add wait after attach and before checking port status

Add sleep between attach and "usbip port" check to make sure status is
updated. Running attach and query back shows incorrect status.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shuah Khan (Samsung OSG) and committed by
Greg Kroah-Hartman
4b0aaace 0238df64

+4
+4
tools/testing/selftests/drivers/usb/usbip/usbip_test.sh
··· 141 141 src/usbip attach -r localhost -b $busid; 142 142 echo "==============================================================" 143 143 144 + # Wait for sysfs file to be updated. Without this sleep, usbip port 145 + # shows no imported devices. 146 + sleep 3; 147 + 144 148 echo "List imported devices - expect to see imported devices"; 145 149 src/usbip port; 146 150 echo "=============================================================="