NTB: ntb_test: modprobe on remote host
authorAllen Hubbe <Allen.Hubbe@dell.com>
Wed, 28 Dec 2016 00:12:27 +0000 (19:12 -0500)
committerJon Mason <jdmason@kudzu.us>
Thu, 6 Jul 2017 15:30:06 +0000 (11:30 -0400)
Signed-off-by: Allen Hubbe <Allen.Hubbe@dell.com>
Acked-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
tools/testing/selftests/ntb/ntb_test.sh

index 13f5198ba0ee737819b24cbc3538cc4b97e8d2f2..1ee8ea350f65cea6afb916c3a18a2f8570ec8e21 100755 (executable)
@@ -85,6 +85,10 @@ set -e
 function _modprobe()
 {
         modprobe "$@"
+
+       if [[ "$REMOTE_HOST" != "" ]]; then
+               ssh "$REMOTE_HOST" modprobe "$@"
+       fi
 }
 
 function split_remote()