From 0f6b0ed67c247d1462c3c2ac8662a65659b51e80 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Thu, 18 Jun 2020 05:42:02 -0400 Subject: [PATCH] test/common: point to $rootdir instead of pwd in get_nvme_bdfs Tests should always have a reference to $rootdir absolute path. Before this change, result of this function depended on current working directory. Test like test/nvme/spdk_nvme_cli.sh where directory was changed, would fail. With this change the path to get_nvme.sh script should always be correct. Signed-off-by: Tomasz Zawadzki Change-Id: Id555188f032e179eedd406463446a85e13234b6d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2936 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Maciej Wawryk Reviewed-by: Karol Latecki --- test/common/autotest_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 912f4bf36..e4dcc4eb9 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -1210,7 +1210,7 @@ function opal_revert_cleanup() { # uio-pci-generic or vfio-pci function get_nvme_bdfs() { xtrace_disable - jq -r .config[].params.traddr <<< $(scripts/gen_nvme.sh --json) + jq -r .config[].params.traddr <<< $($rootdir/scripts/gen_nvme.sh --json) xtrace_restore }