Skip to content

Commit

Permalink
Merge pull request #191 from analogdevicesinc/tfcollins/test-debug
Browse files Browse the repository at this point in the history
Update display export for targeting tests
  • Loading branch information
tfcollins authored Dec 17, 2024
2 parents 95736de + 1157eef commit 65e81ea
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions CI/scripts/targeting_designs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ MLPATH=/opt/MATLAB

cd ../..
source /opt/Xilinx/Vivado/2022.2/settings64.sh
Xvfb :77 &
export DISPLAY=:77
# Randomize DISPLAY number to avoid conflicts
export DISPLAY_ID=:$(shuf -i 10-1000 -n 1)
Xvfb :$DISPLAY_ID &
XVFB_PID=$!
export DISPLAY=:$DISPLAY_ID
export SWT_GTK3=0
source /opt/Xilinx/Vivado/2022.2/settings64.sh
$MLPATH/$MLRELEASE/bin/matlab $MLFLAGS -r "addpath(genpath('test'));addpath(genpath('deps'));runDemoTests('$DEMO');"
EC=$?
pidof Xvfb
if [ $? -eq 0 ]; then
kill -9 `pidof Xvfb`
fi
exit $EC
sleep 5
kill -9 $XVFB_PID || true
exit $EC

0 comments on commit 65e81ea

Please sign in to comment.