Skip to content
Snippets Groups Projects
Unverified Commit bf137e66 authored by Piotr Balcer's avatar Piotr Balcer Committed by GitHub
Browse files

Merge pull request #4966 from wlemkows/fix-return

test: fix fail on return pmempool_feature
parents 072c2cd7 433bcf32
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2019, Intel Corporation # Copyright 2018-2020, Intel Corporation
# #
# src/test/pmempool_feature/common.sh -- common part of pmempool_feature tests # src/test/pmempool_feature/common.sh -- common part of pmempool_feature tests
...@@ -26,7 +26,7 @@ sds_enabled=$(is_ndctl_enabled $pmempool_exe; echo $?) ...@@ -26,7 +26,7 @@ sds_enabled=$(is_ndctl_enabled $pmempool_exe; echo $?)
# #
# usage: pmempool_feature_query_return <feature> # usage: pmempool_feature_query_return <feature>
function pmempool_feature_query_return() { function pmempool_feature_query_return() {
return $($pmempool_exe feature -q $1 $POOLSET 2>> $LOG) echo $($pmempool_exe feature -q $1 $POOLSET 2>> $LOG)
} }
# pmempool_feature_query -- query feature # pmempool_feature_query -- query feature
...@@ -132,8 +132,8 @@ function pmempool_feature_test_CKSUM_2K() { ...@@ -132,8 +132,8 @@ function pmempool_feature_test_CKSUM_2K() {
# If SDS is not enabled at this point is because SDS is not available for # If SDS is not enabled at this point is because SDS is not available for
# this device # this device
pmempool_feature_query_return "SHUTDOWN_STATE" ret=$(pmempool_feature_query_return "SHUTDOWN_STATE")
if [[ $? -eq 0 ]]; then if [[ $ret -eq 0 ]]; then
msg "$UNITTEST_NAME: SKIP: SDS is not available" msg "$UNITTEST_NAME: SKIP: SDS is not available"
exit 0 exit 0
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment