From 11318a9299ce2223007fcf793fbc34a091f8200c Mon Sep 17 00:00:00 2001
From: Piotr Balcer <piotr.balcer@intel.com>
Date: Fri, 25 Sep 2020 11:46:04 +0200
Subject: [PATCH] test: fix sds support check in pmempool_feature

---
 src/test/pmempool_feature/common.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/pmempool_feature/common.sh b/src/test/pmempool_feature/common.sh
index afdcfe9b0..7a2c32130 100644
--- a/src/test/pmempool_feature/common.sh
+++ b/src/test/pmempool_feature/common.sh
@@ -154,8 +154,8 @@ function pmempool_feature_test_SHUTDOWN_STATE() {
 
 	# If SDS is not enabled at this point is because SDS is not available for
 	# this device
-	pmempool_feature_query_return "SHUTDOWN_STATE"
-	if [[ $? -eq 0 ]]; then
+	ret=$(pmempool_feature_query_return "SHUTDOWN_STATE")
+	if [[ $ret -eq 0 ]]; then
 		msg "$UNITTEST_NAME: SKIP: SDS is not available"
 		exit 0
 	fi
-- 
GitLab