diff --git a/test/common/autobuild_common.sh b/test/common/autobuild_common.sh index 1b56ef00f..f2baa5ce0 100755 --- a/test/common/autobuild_common.sh +++ b/test/common/autobuild_common.sh @@ -43,6 +43,7 @@ _build_native_dpdk() { local compiler_version local compiler local dpdk_kmods + local repo='dpdk' compiler=${CC:-gcc} @@ -57,6 +58,10 @@ _build_native_dpdk() { return 1 fi + if [[ $SPDK_TEST_NATIVE_DPDK != 'main' ]]; then + repo='dpdk-stable' + fi + compiler_version=$("$compiler" -dumpversion) compiler_version=${compiler_version%%.*} external_dpdk_dir="$SPDK_RUN_EXTERNAL_DPDK" @@ -69,7 +74,7 @@ _build_native_dpdk() { orgdir=$PWD rm -rf "$external_dpdk_base_dir" - git clone --branch $SPDK_TEST_NATIVE_DPDK --depth 1 http://dpdk.org/git/dpdk "$external_dpdk_base_dir" + git clone --branch $SPDK_TEST_NATIVE_DPDK --depth 1 http://dpdk.org/git/${repo} "$external_dpdk_base_dir" git -C "$external_dpdk_base_dir" log --oneline -n 5 dpdk_cflags="-fPIC -g -fcommon"