Skip to content

Commit

Permalink
Check successful launch of sasview on CI (linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
llimeht committed Aug 20, 2024
1 parent 790d628 commit b29222d
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,28 @@ jobs:
if: ${{ startsWith(matrix.os, 'ubuntu' )}}
# If sasview has crashed on its own, then this should return an error
run: |
xvfb-run -a --server-args="-screen 0 1024x768x24" $RUN_SASVIEW &
sleep 60s
kill %1
(
echo "## START SASVIEW"
xvfb-run -a --server-args="-screen 0 1024x768x24" $RUN_SASVIEW 2>&1 |
tee sasview-test.log
) &
svpid=$!
(
set -e
sleep 20s
echo "## PULSE CHECK"
kill -0 $svpid
echo "## PULSE OK"
sleep 40s
echo "## FINISHING SMOKE TEST"
kill $svpid
echo "## SMOKE TEST COMPLETE"
exit 0
) &
pulsepid=$1
wait $pulsepid
# Check the log file for successful startup
grep "SasView session started" sasview-test.log
### Optionally attempt to work with the debug tarball from pyinstaller

Expand Down

0 comments on commit b29222d

Please sign in to comment.