diff --git a/plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh b/plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh index e461532e8..bf280ba32 100644 --- a/plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh +++ b/plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh @@ -32,7 +32,7 @@ bash $PLUGIN_DIR/.pytest/terminate_pdr_standalone_pytest.sh echo "Starting standalone PDR process" python $PLUGIN_DIR/ufm_sim_web_service/isolation_algo.py >/dev/null 2>&1 & sleep 10 -if ! pgrep -x isolation_algo.py> /dev/null; then +if ! ps aux | grep -q [i]solation_algo.py; then echo "Failed to start standalone PDR process" exit 1 fi diff --git a/plugins/pdr_deterministic_plugin/.pytest/terminate_pdr_standalone_pytest.sh b/plugins/pdr_deterministic_plugin/.pytest/terminate_pdr_standalone_pytest.sh index d49c04239..f5c6f00b8 100644 --- a/plugins/pdr_deterministic_plugin/.pytest/terminate_pdr_standalone_pytest.sh +++ b/plugins/pdr_deterministic_plugin/.pytest/terminate_pdr_standalone_pytest.sh @@ -3,7 +3,7 @@ echo "Terminating standalone PDR process" ps -ef | grep isolation_algo.py | grep -v grep | awk '{print $2}' | xargs kill -9 $1 >/dev/null 2>/dev/null sleep 10 -if pgrep -x isolation_algo.py> /dev/null; then +if ps aux | grep -q [i]solation_algo.py; then echo "Failed to terminate standalone PDR process" exit 1 fi