test/nvme-cli: clean all previous artifacts from builds
There are a lot of files in the nvme-cli repo on system that either build up (*.core) or produce misleading logs (*.gcda). This patch cleans the nvme-cli repository before compiling. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I8f169b9eaef2dc91b14b324a63b338611f82a6a5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2949 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
af761ab167
commit
9803ad73ea
@ -23,11 +23,14 @@ if [ ! -d $spdk_nvme_cli ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Build against the version of SPDK under test
|
# Build against the version of SPDK under test
|
||||||
|
cd $spdk_nvme_cli
|
||||||
|
|
||||||
|
git clean -dfx
|
||||||
|
|
||||||
rm -f "$spdk_nvme_cli/spdk"
|
rm -f "$spdk_nvme_cli/spdk"
|
||||||
ln -sf "$rootdir" "$spdk_nvme_cli/spdk"
|
ln -sf "$rootdir" "$spdk_nvme_cli/spdk"
|
||||||
|
|
||||||
cd $spdk_nvme_cli
|
make -j$(nproc) LDFLAGS="$(make -s -C $spdk_nvme_cli/spdk ldflags)"
|
||||||
make clean && make -j$(nproc) LDFLAGS="$(make -s -C $spdk_nvme_cli/spdk ldflags)"
|
|
||||||
|
|
||||||
trap "kill_stub; exit 1" SIGINT SIGTERM EXIT
|
trap "kill_stub; exit 1" SIGINT SIGTERM EXIT
|
||||||
start_stub "-s 2048 -i 0 -m 0xF"
|
start_stub "-s 2048 -i 0 -m 0xF"
|
||||||
|
Loading…
Reference in New Issue
Block a user