Skip to content
Snippets Groups Projects
Commit 8c9361e1 authored by Lucas A. M. Magalhaes's avatar Lucas A. M. Magalhaes
Browse files

test: Fix pmempool_sync_remote/TEST21 when SDS is not supported

parent 0d98c1df
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,8 @@ require_sds $PMEMPOOL ...@@ -17,6 +17,8 @@ require_sds $PMEMPOOL
configure_poolsets 0 1 configure_poolsets 0 1
require_sds_support ${NODE_DIR[1]}pool.part.1
# XXX: we are using pmemspoil to turn on shutdown state # XXX: we are using pmemspoil to turn on shutdown state
run_on_node 0 ../pmemspoil ${NODE_DIR[0]}remote.0.part.1 \ run_on_node 0 ../pmemspoil ${NODE_DIR[0]}remote.0.part.1 \
......
...@@ -24,6 +24,16 @@ copy_files_to_node 1 ${NODE_TEST_DIR[1]} $PMEMOBJCLI_SCRIPT ...@@ -24,6 +24,16 @@ copy_files_to_node 1 ${NODE_TEST_DIR[1]} $PMEMOBJCLI_SCRIPT
POOLSET_LOCAL="local_pool.set" POOLSET_LOCAL="local_pool.set"
pmempool_exe=$PMEMPOOL$EXESUFFIX
function require_sds_support() {
$pmempool_exe feature -q "SHUTDOWN_STATE" $1 2>> /dev/null
if [[ $? -eq 0 ]]; then
msg "$UNITTEST_NAME: SKIP: SDS is not available"
exit 0
fi
}
# #
# configure_poolsets -- configure pool set files for test # configure_poolsets -- configure pool set files for test
# usage: configure_poolsets <local replicas> <remote replicas> # usage: configure_poolsets <local replicas> <remote replicas>
......
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