]> www.infradead.org Git - users/dwmw2/linux.git/commit
NTB: ntb_test: Fix bug when counting remote files
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 9 Jan 2019 19:22:33 +0000 (12:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:07 +0000 (17:49 +0200)
commit1ce6ac210a09c2165df67a3ac94264dd1aab72a6
tree52cf9b0fd9ca0a99e6a06a276d89ef783752606c
parent47011450da2aebcfebe01f6e824f0ead5dbf93b7
NTB: ntb_test: Fix bug when counting remote files

[ Upstream commit 2130c0ba69d69bb21f5c52787f2587db00d13d8a ]

When remote files are counted in get_files_count, without using SSH,
the code returns 0 because there is a colon prepended to $LOC. $VPATH
should have been used instead of $LOC.

Fixes: 06bd0407d06c ("NTB: ntb_test: Update ntb_tool Scratchpad tests")
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Tested-by: Alexander Fomichev <fomichev.ru@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/ntb/ntb_test.sh