]> git.baikalelectronics.ru Git - kernel.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)
committerJon Mason <jdmason@kudzu.us>
Sat, 6 Jun 2020 00:02:09 +0000 (20:02 -0400)
commit9a0bc8687bd5c84ffa96bee5e1a31af3e582d561
treeaae98df83f489744850ec9bc5d6459322ee3a710
parent4db2f83e3c72247bcf03507d84961d4260f50c45
NTB: ntb_test: Fix bug when counting remote files

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: dbed24b0a6d2 ("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>
tools/testing/selftests/ntb/ntb_test.sh