Skip to content

Commit

Permalink
selftests: usbip: add wait after attach and before checking port status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shuah Khan (Samsung OSG) authored and Greg Kroah-Hartman committed Oct 9, 2018
1 parent 0238df6 commit 4b0aaac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/testing/selftests/drivers/usb/usbip/usbip_test.sh
Original file line number Diff line number Diff line change
@@ -141,6 +141,10 @@ echo "Import devices from localhost - should work"
src/usbip attach -r localhost -b $busid;
echo "=============================================================="

# Wait for sysfs file to be updated. Without this sleep, usbip port
# shows no imported devices.
sleep 3;

echo "List imported devices - expect to see imported devices";
src/usbip port;
echo "=============================================================="

0 comments on commit 4b0aaac

Please sign in to comment.