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 8406a2a commit 2a779c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pdr_plugin_ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ jobs:
pytest -s $PDRPATH/tests/exclude_list_rest_api_tests.py --cov=$PDRPATH
echo "Terminating standalone PDR process"
sudo pkill -0 isolation_algo.py && pkill -9 -f isolation_algo.py 2>/dev/null
sleep 10
if pgrep -x "my_file.py" > /dev/null; then
echo "Failed to kill the process"
exit 1
fi
- name: Run full simulation test
timeout-minutes: 10
run: |
Expand All @@ -52,3 +57,9 @@ jobs:
python $PDRPATH/tests/simulation_telemetry.py
echo "Terminating standalone PDR process"
sudo pkill -0 isolation_algo.py && pkill -9 -f isolation_algo.py 2>/dev/null
sleep 10
if pgrep -x "my_file.py" > /dev/null; then
echo "Failed to kill the process"
exit 1
fi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ sed -i -e 's/DEISOLATE_CONSIDER_TIME=5/DEISOLATE_CONSIDER_TIME=1/g' "$CONFIG_FIL
echo "Terminating standalone PDR process"
pkill -0 isolation_algo.py && pkill -9 -f isolation_algo.py 2>/dev/null
sleep 10
if pkill -0 isolation_algo.py; then
echo "Failed to kill the process."
exit 1
fi

echo "Starting standalone PDR process"
python $PLUGIN_DIR/ufm_sim_web_service/isolation_algo.py >/dev/null 2>&1 &

0 comments on commit 2a779c3

Please sign in to comment.