Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vg12345 committed May 21, 2024
1 parent 21efccd commit 05d8c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 05d8c79

Please sign in to comment.