From 0bec3c3c647a492507f27696a647ff1aba2b3a1d Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Fri, 3 Jul 2020 11:35:48 +0200 Subject: [PATCH] pkgdep/git: Don't fail install_qat() if qat_c62x is not loaded Change-Id: I3784e3f7983a7f66ea68b2bd8b97f98b282e3405 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3201 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- test/common/config/pkgdep/git | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index a6e2a5404..331abdcca 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -77,7 +77,9 @@ function install_qat() { kernel_maj=$(uname -r | cut -d'.' -f1) kernel_min=$(uname -r | cut -d'.' -f2) - sudo modprobe -r qat_c62x + if [[ -e /sys/module/qat_c62x ]]; then + sudo modprobe -r qat_c62x || : + fi if [[ -d $GIT_REPOS/QAT ]]; then sudo rm -rf "$GIT_REPOS/QAT" fi