Skip to content

Commit

Permalink
Run virtual iridium before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hhenry01 committed Nov 3, 2023
1 parent bb26904 commit ff257e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set -e

source /opt/ros/${ROS_DISTRO}/setup.bash
./setup.sh
./build.sh RelWithDebInfo OFF # Do not run static analysis or linting
./build.sh
./test.sh
7 changes: 7 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash
set -e

# Test failures terminate the script
# Catch the signal so child processes can be cleaned up
trap "exit" INT TERM
trap "kill 0" EXIT

if [ -f install/local_setup.bash ]; then source install/local_setup.bash; fi
if [ -d src/network_systems ]; then ./src/network_systems/scripts/run_virtual_iridium.sh & fi
colcon test --packages-ignore virtual_iridium --merge-install --event-handlers console_cohesion+
colcon test-result
kill 0 # Kill current process and all child processes

0 comments on commit ff257e5

Please sign in to comment.