summaryrefslogtreecommitdiff
path: root/cpp/src/tests/run_federation_sys_tests
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/run_federation_sys_tests')
-rwxr-xr-xcpp/src/tests/run_federation_sys_tests8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/tests/run_federation_sys_tests b/cpp/src/tests/run_federation_sys_tests
index f5f772d72e..76da176914 100755
--- a/cpp/src/tests/run_federation_sys_tests
+++ b/cpp/src/tests/run_federation_sys_tests
@@ -26,12 +26,8 @@ source ./test_env.sh
MODULENAME=federation_sys
# Test for clustering
-ps -u root | grep 'aisexec\|corosync' > /dev/null
-if (( $? == 0 )); then
- CLUSTERING_ENABLED=1
-else
- echo "WARNING: No clustering detected; tests using it will be ignored."
-fi
+source cpg_check.sh
+if cpg_enabled; then CLUSTERING_ENABLED=1; fi
# Test for long test
if [[ "$1" == "LONG_TEST" ]]; then